%define shortname gdamm %define origname libgdamm # api is the part of the library name before the .so %define api 4.0 # major is the part of the library name after the .so %define major 10 %define lib_name %mklibname %{shortname} %{api} %{major} %define develname %mklibname gdamm %{api} -d Name: libgdamm4 #(!) summary for SRPM only Summary: C++ wrappers for libgda Version: 3.99.14 Group: System/Libraries License: LGPLv2+ Release: %mkrel 1 URL: http://www.gtkmm.org/ Source0: http://ftp.gnome.org/pub/GNOME/sources/libgdamm/%{origname}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRequires: glibmm2.4-devel BuildRequires: libgda4.0-devel >= 4.0.0 #Full and generic description of the whole package. (this will be the SRPM #description only) %description C++ wrappers for libgda. libgdamm is part of a set of powerful C++ bindings for the GNOME libraries, which provide additional functionality above GTK+/gtkmm. #main package (contains ''.so.[major].''' only) %package -n %{lib_name} #(!) summary for main lib RPM only Summary: Main library for gdamm Group: System/Libraries Provides: %{name} = %{version}-%{release} %description -n %{lib_name} C++ wrappers for libgda. libgdamm is part of a set of powerful C++ bindings for the GNOME libraries, which provide additional functionality above GTK+/gtkmm. %package -n %{develname} Summary: Headers for developing programs that will use gda Group: Development/GNOME and GTK+ Requires: %{lib_name} = %{version} #(!) '''''MANDATORY''''' Provides: %{lib_name}-devel = %{version}-%{release} #(!) '''''MANDATORY''''' Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} This package contains headers and libraries that programmers will need to develop applications which use libgdamm. %prep %setup -q -n %{origname}-%{version} %build %configure2_5x --enable-static %make %install rm -rf $RPM_BUILD_ROOT make DESTDIR=${RPM_BUILD_ROOT} install find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %if %mdkversion < 200900 %post -n %{lib_name} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{lib_name} -p /sbin/ldconfig %endif %files -n %{lib_name} # .. # include the major number (and api if present) in the file list to catch #changes on version upgrade %doc AUTHORS COPYING ChangeLog NEWS %{_libdir}/lib*-%{api}.so.%{major}* %files -n %{develname} %{_includedir}/libgdamm-%api %{_libdir}/*.a %{_libdir}/*.so %{_libdir}/libgdamm-%api %{_libdir}/pkgconfig/*.pc %changelog * Mon Mar 16 2009 Götz Waschk <waschk@mandriva.org> 3.99.14-1mdv2009.1 + Revision: 356298 - new version - bump libgda4.0 dep * Tue Mar 10 2009 Götz Waschk <waschk@mandriva.org> 3.99.13-1mdv2009.1 + Revision: 353434 - new version * Mon Mar 02 2009 Götz Waschk <waschk@mandriva.org> 3.99.12-1mdv2009.1 + Revision: 346880 - update to new version 3.99.12 * Sun Feb 15 2009 Götz Waschk <waschk@mandriva.org> 3.99.11-1mdv2009.1 + Revision: 340679 - update to new version 3.99.11 * Fri Jan 16 2009 Götz Waschk <waschk@mandriva.org> 3.99.8-1mdv2009.1 + Revision: 330310 - new version - fix source URL * Mon Jan 05 2009 Götz Waschk <waschk@mandriva.org> 3.99.7-2mdv2009.1 + Revision: 325027 - fix license - rename libgdamm3 package - new version - new api version 4.0 - new version - rebuild + mandrake <mandrake@mandriva.com> - %repsys markrelease version: 3.99.7 release: 1mdv2009.1 revision: 324512 Copying 3.99.7-1mdv2009.1 to releases/ directory. + Thierry Vignaud <tvignaud@mandriva.com> - fix srpm description (extra spacing due to comments) - kill re-definition of %%buildroot on Pixel's request + Funda Wang <fundawang@mandriva.org> - drop libmajor for devel package name - New version 3.0.0 - obsoletes old devel package - fix libname - New version 2.9.81 + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Jérôme Soyer <saispo@mandriva.org> - import libgdamm3