Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > f9e410372fb2271f9abd29a9ee78b499 > files > 2

libcompizconfig-0.5.2-1mdv2007.1.src.rpm

%define shortname compizconfig
%define name libcompizconfig
%define version 0.5.2
%define rel 1
%define git 0

%define major 0
%define libname %mklibname %shortname %major
%define libname_devel %mklibname -d %shortname

%if  %{git}
%define srcname %{name}-%{git}
%define distname %{name}
%define release %mkrel 0.%{git}.%{rel}
%else
%define srcname %{name}-%{version}
%define distname %{name}-%{version}
%define release %mkrel %{rel}
%endif


Summary: Backend configuration library from Compiz Fusion
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{srcname}.tar.bz2
License: GPL
Group: System/X11
URL: http://www.compiz-fusion.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: libxml2-devel
BuildRequires: compiz-devel
BuildRequires: gettext-devel
BuildRequires: intltool

%description
Backend configuration library from Compiz Fusion

#----------------------------------------------------------------------------

%package -n %libname
Summary: Backend configuration library from Compiz Fusion
Group: System/X11
Provides: %name = %{version}-%{release}

%description -n %libname
Backend configuration library from Compiz Fusion

#----------------------------------------------------------------------------

%package -n %libname_devel
Summary: Development files for libcompizconfig
Group: Development/X11
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}


%description -n %libname_devel
Development files for libcompizconfig

#----------------------------------------------------------------------------

%prep
%setup -q -n %{distname}

%build
%if %{git}
  # This is a GIT snapshot, so we need to generate makefiles.
  sh autogen.sh -V
%endif
%configure2_5x
%make

%install
rm -rf %{buildroot}
%makeinstall_std
find %{buildroot} -name *.la -exec rm -f {} \;

%clean
rm -rf %{buildroot}

#----------------------------------------------------------------------------

%files -n %libname
%defattr(-,root,root)
%{_libdir}/compiz/libccp.so
%{_libdir}/%{shortname}/backends/libini.so
%{_libdir}/%{name}.so.*
%{_datadir}/%{shortname}/global.xml

%files -n %libname_devel
%defattr(-,root,root)
%dir %{_includedir}/%{shortname}
%{_includedir}/%{shortname}/ccs.h
%{_includedir}/%{shortname}/ccs-backend.h
%{_libdir}/compiz/libccp.a
%{_libdir}/%{shortname}/backends/libini.a
%{_libdir}/%{name}.a
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc



%changelog
* Mon Aug 13 2007 Colin Guthrie <cguthrie@mandriva.org> 0.5.2-1mdv2008.0
+ Revision: 62611
- Official Release: 0.5.2

* Sun Aug 12 2007 Colin Guthrie <cguthrie@mandriva.org> 0.0.1-0.20070811.1mdv2008.0
+ Revision: 62119
- Update snapshot

* Wed Aug 08 2007 Olivier Blin <oblin@mandriva.com> 0.0.1-0.20070801.2mdv2008.0
+ Revision: 60014
- do not require compiz, it is not strictly needed

* Wed Aug 01 2007 Colin Guthrie <cguthrie@mandriva.org> 0.0.1-0.20070801.1mdv2008.0
+ Revision: 57835
- Updated snapshot

* Wed Jul 25 2007 Colin Guthrie <cguthrie@mandriva.org> 0.0.1-0.20070724.1mdv2008.0
+ Revision: 55250
- Update Snapshot

* Sat Jul 14 2007 Colin Guthrie <cguthrie@mandriva.org> 0.0.1-0.20070712.0.1mdv2008.0
+ Revision: 52115
- Update snapshot

* Sun Jul 08 2007 Colin Guthrie <cguthrie@mandriva.org> 0.0.1-0.20070707.1mdv2008.0
+ Revision: 49635
- Update snapshot to 20070707

* Sun Jul 08 2007 Colin Guthrie <cguthrie@mandriva.org> 0.0.1-0.20070627.1mdv2008.0
+ Revision: 49608
- Require compiz
- Fix %%files and add an arch independant provides
- Import libcompizconfig