Changes of Revision 5
[-] | Changed | libharu.spec |
x 1
2 %define libname libhpdf 3 -Name: libharu 4 +%define pkgname libharu 5 +%define soname %{libname}-2_1_0 6 + 7 +Name: %{soname} 8 Version: 2.1.0 9 Release: 1 10 Url: http://libharu.org/ 11 -Source: http://libharu.org/files/%{name}-%{version}.tar.gz 12 -Summary: libHaru is a free, cross platform, open source library for generating PDF files. 13 +Source: http://libharu.org/files/%{pkgname}-%{version}.tar.gz 14 +Summary: LIBHaru is a library for generating PDF files 15 Group: Development/Libraries 16 License: ZLIB/LIBPNG 17 BuildRoot: %{_tmppath}/%{name}-%{version}-build 18 BuildRequires: libpng-devel zlib-devel 19 +Provides: %{pkgname} = %{version} 20 +Obsoletes: %{pkgname} 21 22 %description 23 libHaru is a free, cross platform, open source library for generating PDF files. 24
25 26 libHaru is written in ANSI C, so theoretically it supports most of the modern OSes. 27 28 -%package devel 29 +%package -n %{libname}-devel 30 Summary: %{name} development files 31 Group: Development/Libraries 32 -Requires: %{name} 33 +Requires: %{soname} 34 +Provides: %{pkgname}-devel = %{version} 35 +Obsoletes: %{pkgname}-devel 36 37 -%description devel 38 -%{name} development files (includes & extra libs) 39 +%description -n %{libname}-devel 40 +%{pkgname} development files (includes & extra libs) 41 42 43 %prep 44 -%setup -n %{name}-%{version} 45 +%setup -n %{pkgname}-%{version} 46 %configure --with-zlib --with-png --with-libdir=%{_libdir} 47 48 %build 49
50 %doc README CHANGES 51 %{_libdir}/%{libname}-%{version}.so 52 53 -%files devel 54 +%files -n %{libname}-devel 55 %defattr(-,root,root) 56 %{_includedir}/hpdf* 57 %{_libdir}/%{libname}.a 58 |