%define version 1.2.0 %define rel 4 %define snapdate 0 # 20091029 # they didn't tagged it properly, even misnamed the version %define snapshot 4039bcea9729ec9709c93dc6d0076dbd43fde5a5 %if %{snapdate} %define release %mkrel 0.%{snapdate}.%{rel} %else %define release %mkrel %{rel} %endif %define major 0 %define api 1.2 %define libname %mklibname %{name} %{major} %define gtklibname %mklibname %{name}-gtk %{major} %define develname %mklibname %{name} -d Name: nbtk Summary: Experimental toolkit for Moblin Group: System/Libraries Version: %{version} License: LGPLv2.1 URL: http://www.moblin.org Release: %{release} Source0: http://git.moblin.org/cgit.cgi/%{name}/snapshot/%{name}-%{version}.tar.bz2 Patch0: 01_use_ccss0.5.0.patch Patch1: nbtk-1.2.3-gtk.patch Patch2: nbtk-1.2.3-types.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: clutter-devel BuildRequires: libccss-devel BuildRequires: clutter-imcontext-devel BuildRequires: libglib2.0-devel BuildRequires: libgtk+2.0-devel BuildRequires: gtk-doc BuildRequires: gobject-introspection-devel %description NBTK is a currently experimental toolkit for Moblin %package -n %{libname} Summary: NBTK libraries Group: System/Libraries Requires: %{name} %description -n %{libname} NBTK is a currently experimental toolkit for Moblin %package -n nbtk-doc Summary: NBTK documentation Group: System/Libraries %description -n nbtk-doc Documentation for NBTK %package -n %{develname} Summary: NBTK development libraries and headers Group: Development/C Requires: %{libname} = %{version}-%{release} Requires: %{gtklibname} = %{version}-%{release} Provides: %{name}-devel %description -n %{develname} NBTK development libraries and header files %package -n %{gtklibname} Summary: NBTK GTK+ support Group: System/Libraries Requires: %{libname} = %{version}-%{release} Requires: pkgconfig Requires: %{libname} >= %{version} %description -n %{gtklibname} NBTK GTK+ support %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .ccss050 %patch1 -p1 -b .gtk %patch2 -p1 -b .types perl -pi -e 's,^\$srcdir/configure,/bin/true,' ./autogen.sh %build ./autogen.sh %configure2_5x --enable-gtk-doc %make %install rm -rf %{buildroot} %makeinstall_std mkdir -p %{buildroot}/%{_datadir}/doc/%{name}-%{version} for f in `ls %{buildroot}/%{_datadir}/doc/`; do if [ -f %{buildroot}/%{_datadir}/doc/$f ]; then mv %{buildroot}/%{_datadir}/doc/$f %{buildroot}/%{_datadir}/doc/%{name}-%{version} fi done %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc NEWS README HACKING ChangeLog COPYING.LIB AUTHORS %{_bindir}/* %{_datadir}/locale/* %{_datadir}/nbtk/style/* %files -n %{libname} %defattr(-,root,root,-) %{_libdir}/libnbtk-%{api}.so.%{major}* %{_libdir}/girepository-1.0/Nbtk-%{api}.typelib %files -n nbtk-doc %defattr(-,root,root,-) /usr/share/gtk-doc/html/nbtk %files -n %{develname} %defattr(-,root,root,-) %{_includedir}/nbtk-%{api}/* %{_libdir}/pkgconfig/*.pc %{_datadir}/gir-1.0/* %{_libdir}/libnbtk-gtk-%{api}.la %{_libdir}/libnbtk-gtk-%{api}.so %{_libdir}/libnbtk-%{api}.la %{_libdir}/libnbtk-%{api}.so %files -n %{gtklibname} %{_libdir}/libnbtk-gtk*.so.%{major}* %{_libdir}/girepository-1.0/NbtkGtk-%{api}.typelib %changelog * Mon Sep 13 2010 Götz Waschk <waschk@mandriva.org> 1.2.0-4mdv2011.0 + Revision: 577996 - rebuild for new g-i * Sat Jul 31 2010 Funda Wang <fwang@mandriva.org> 1.2.0-3mdv2011.0 + Revision: 563869 - add fedora patch to make it build * Fri Feb 12 2010 Götz Waschk <waschk@mandriva.org> 1.2.0-2mdv2010.1 + Revision: 504648 - move introspection files to the library packages * Fri Nov 06 2009 Caio Begotti <caio1982@mandriva.org> 1.2.0-1mdv2010.1 + Revision: 461930 - new upstream release * Thu Oct 29 2009 Olivier Blin <oblin@mandriva.com> 1.1.13-1mdv2010.0 + Revision: 460202 - 1.1.13 (from Caio Begotti) * Tue Oct 06 2009 Olivier Blin <oblin@mandriva.com> 1.1.4-4mdv2010.0 + Revision: 455251 - do not run configure twice - properly fix build for ccss 0.5.0 (patch from Ubuntu) - split out ccss_property_base_t rename patch - add patch extension * Tue Oct 06 2009 Olivier Blin <oblin@mandriva.com> 1.1.4-3mdv2010.0 + Revision: 454753 - require gtk library in devel package too - remove duplicate library require - fix gtk library name * Fri Oct 02 2009 Olivier Blin <oblin@mandriva.com> 1.1.4-2mdv2010.0 + Revision: 452554 - fix devel group * Fri Oct 02 2009 Olivier Blin <oblin@mandriva.com> 1.1.4-1mdv2010.0 + Revision: 452514 - move binaries and data in main package - add .so in devel package - drop useless pkgconfig buildrequire - fix typo - drop pkgconfig require, that's automatic - provide nbtk-devel - buildrequire clutter-imcontext-devel - remove .so from main package - fix buildrequires for x86_64 - initial import (from Claudio Matsuoka and Caio Begotti, based on Fedora package) - Created package structure for nbtk.