%define name rpmconstant %define version 0.1.4 %define major 0 %define libname %mklibname %name %major %define develname %mklibname %name -d Summary: A library to bind RPM constant values Name: %{name} Version: %{version} Release: %mkrel 3 Source0: http://rpm4.zarb.org/download/%{name}-%{version}.tar.gz License: LGPLv2.1 Group: Development/C Url: http://rpm4.zarb.org/ BuildRequires: popt-devel rpm-devel %description This library provides basic functions to map internal RPM constant values with their name. This is useful for perl/python or other language which has binding over rpmlib. %package -n %libname Summary: A library to bind rpm constant Group: Development/C Provides: lib%{name} = %version-%release %description -n %libname This library provides basics functions to map internal rpm constant value with their name. This is useful for perl/python or other language which has binding over rpmlib. %package -n %develname Summary: Development files from librpmconstant Group: Development/C Provides: %name-devel = %version-%release Provides: lib%{name}-devel = %version-%release Requires: %libname = %version-%release Obsoletes: %mklibname rpmconstant 0 -d %description -n %develname This library provides basics functions to map internal rpm constant value with their name. This is useful for perl/python or other language which has binding over rpmlib. You need this package to build applications using librpmconstant. %prep %setup -q %build mv rpmconstanttbl.c rpmconstanttbl.c.old # Ensure this file is regenated %configure2_5x --disable-static %make %install %makeinstall_std rm -f %{buildroot}%{_libdir}/*.la %files %doc AUTHORS ChangeLog README %_bindir/%name %files -n %libname %_libdir/lib%name.so.%{major} %_libdir/lib%name.so.%{major}.* %files -n %develname %doc constant.c AUTHORS ChangeLog README %_includedir/%name/%name.h %_libdir/lib%name.so %changelog * Mon Jan 14 2013 umeabot <umeabot> 0.1.4-3.mga3 + Revision: 380459 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Dec 18 2012 tv <tv> 0.1.4-2.mga3 + Revision: 332403 - rebuild for new rpm * Tue Dec 18 2012 tv <tv> 0.1.4-1.mga3 + Revision: 332397 - BR rpm-devel - rebuild for new rpm - drop merged patch - add support for rpm-4.8 - 4.11 - fix segfaulting with rpm-4.11 retrieving RPMLOG_* - rebuild for new rpm + fwang <fwang> - tighten br to popt - drop .la file * Sat Apr 30 2011 misc <misc> 0.1.3-9.mga1 + Revision: 93922 - increase release to match the one of mandriva - fix website * Mon Jan 17 2011 nanardon <nanardon> 0.1.3-6.mga1 + Revision: 20795 - kill compatibility pre/post for old distro - imported package rpmconstant