Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 90b1dabc114b79a9a0bf5aa7ca719ef4 > files > 3

xfc-4.3.2-7mdv2008.1.src.rpm

%define major 1
%define apiversion 4.3
%define libname %mklibname XFC- %{apiversion} %{major}
%define develname %mklibname XFC -d

Summary:	The Xfce foundation classes
Name:		xfc
Version:	4.3.2
Release:	%mkrel 7
License:	LGPLv2+
Group:		Development/C++
Url:		http://xfc.xfce.org
Source0:	http://xfc.xfce.org/download/4.3.2/src/%{name}-%{version}.tar.bz2
Patch0:		xfc-4.3.2-selection.patch
BuildRequires:	libsigc++2.0-devel
BuildRequires:	libatk-devel
BuildRequires:	libpango-devel
BuildRequires:	libglade2.0-devel
BuildRequires:	libgtksourceview-devel
BuildRequires:	chrpath
Provides:	xfce-xfc
Obsoletes:	xfce-xfc
Requires:	%{libname} = %{version}-%{release}
Requires:	%{develname} = %{version}-%{release}
Requires:	%{name}-demo = %{version}-%{release}
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
The Xfce Foundation Classes is a set of integrated C++ classes 
for developing Xfce applications on UNIX-like operating systems 
such as Linux. The classes combine the power of GTK+ and the power 
of C++ into a state-of-the-art application development framework 
for the Xfce Desktop Environment. The classes judiciously use C++ 
language features to avoid layering on too much extra C++ complexity. 
The API is easy to understand and use, and should feel immediately 
familiar to most GTK+ programmers. The Xfce Foundation Classes is part 
of the Xfce project, and like Xfce it's lightweight, fast and easy to use. 

Example files can be found in %{name}-demo package.

%package demo
Summary:	Xfce foundation classes example files
Group:		Development/Other
Obsoletes:	demo >= 4.3.2

%description demo
Xfce foundation classes example files.

%package -n %{libname}
Summary:	Xfce foundation classes libraries
Group:		System/Libraries

%description -n %{libname}
Xfce foundation classes libraries.

%package -n %{develname}
Summary:	Xfce foundation classes headers
Group:		Development/C++
Requires:	%{name} = %{version}-%{release}
Provides:	xfc-devel = %{version}-%{release}
Provides:	libXFC-devel = %{version}-%{release}

%description -n %{develname}
Xfce foundation classes headers.

%prep
%setup -q
%patch0 -p1 -b .selection

%build
%configure2_5x

%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%makeinstall_std

chrpath -d %{buildroot}%{_bindir}/xfc-demo

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files

%files demo
%defattr(-,root,root)
%dir %{_datadir}/xfce4/xfc
%{_bindir}/xfc-demo
%{_datadir}/xfce4/xfc/demos

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libXFC*-%{apiversion}.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%doc AUTHORS README NEWS TODO ChangeLog
%doc %{_docdir}/xfc-4.3/*
%{_includedir}/xfce4/xfc
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/pkgconfig/*.pc
%{_libdir}/xfce4/xfc/include/*.h


%changelog
* Mon Feb 25 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 4.3.2-7mdv2008.1
+ Revision: 174776
- fix packaging demo

* Mon Feb 25 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 4.3.2-6mdv2008.1
+ Revision: 174521
- do not self-obsolete devel library
- spec file clean

* Sun Feb 03 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 4.3.2-5mdv2008.1
+ Revision: 161878
- rebuild

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Sun Dec 16 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 4.3.2-4mdv2008.1
+ Revision: 120499
- fix packaging demo subpackage

* Fri Nov 30 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 4.3.2-3mdv2008.1
+ Revision: 114040
- obsolete older name
- do not package COPYING file
- new license policy
- use tarball name as a real name

* Sat Sep 22 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 4.3.2-3mdv2008.0
+ Revision: 92130
- rebuild

* Tue Jun 26 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 4.3.2-2mdv2008.0
+ Revision: 44304
- new devel library policy
- provide patch 0 (gcc on x86_64 has some problems with cast unsigned char to unsigned int)
- create subpackage demo
- nuke rpath
- Import xfce-xfc