GeoIP-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. Name: GeoIP
  2. Version: 1.4.8
  3. Release: 3%{?_dist_release}
  4. Summary: C library for country/city/organization to IP address or hostname mapping
  5. Group: Development/Libraries
  6. License: LGPLv2+
  7. URL: http://www.maxmind.com/app/c
  8. Source0: http://www.maxmind.com/download/geoip/api/c/GeoIP-%{version}.tar.gz
  9. Source1: LICENSE.txt
  10. Source2: fetch-geoipdata-city.pl
  11. Source3: fetch-geoipdata.pl
  12. Source4: README.Fedora
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. Obsoletes: geoip < %{version}-%{release}
  15. Provides: geoip = %{version}-%{release}
  16. BuildRequires: zlib-devel
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: tomop
  20. %description
  21. GeoIP is a C library that enables the user to find the country that any IP
  22. address or hostname originates from. It uses a file based database that is
  23. accurate as of March 2003. This database simply contains IP blocks as keys, and
  24. countries as values. This database should be more complete and accurate than
  25. using reverse DNS lookups.
  26. %package devel
  27. Summary: Development headers and libraries for GeoIP
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Provides: geoip-devel = %{version}-%{release}
  31. Obsoletes: geoip-devel < %{version}-%{release}
  32. %description devel
  33. Development headers and libraries for building GeoIP-based applications
  34. %prep
  35. %setup -q
  36. install -D -m644 %{SOURCE1} LICENSE.txt
  37. install -D -m644 %{SOURCE2} fetch-geoipdata-city.pl
  38. install -D -m644 %{SOURCE3} fetch-geoipdata.pl
  39. install -D -m644 %{SOURCE4} README.fedora
  40. %build
  41. autoreconf -ivf
  42. %configure --disable-static --disable-dependency-tracking
  43. make %{?_smp_mflags}
  44. %install
  45. rm -rf %{buildroot}
  46. make DESTDIR=%{buildroot} install
  47. # nix the stuff we don't need like .la files.
  48. rm -f %{buildroot}/%{_libdir}/*.la
  49. %clean
  50. rm -rf %{buildroot}
  51. %post -p /sbin/ldconfig
  52. %postun -p /sbin/ldconfig
  53. %files
  54. %defattr(-,root,root,-)
  55. %doc AUTHORS COPYING ChangeLog README TODO INSTALL LICENSE* fetch-*
  56. %{_libdir}/libGeoIP.so.*
  57. %{_libdir}/libGeoIPUpdate.so.*
  58. %{_bindir}/geoiplookup6
  59. %{_bindir}/geoiplookup
  60. %{_bindir}/geoipupdate
  61. %config(noreplace) %{_sysconfdir}/GeoIP.conf.default
  62. %config(noreplace) %{_sysconfdir}/GeoIP.conf
  63. %{_datadir}/GeoIP
  64. %{_mandir}/man1/geoiplookup.1*
  65. %{_mandir}/man1/geoiplookup6.1*
  66. %{_mandir}/man1/geoipupdate.1*
  67. %files devel
  68. %defattr(-,root,root,-)
  69. %{_includedir}/GeoIP.h
  70. %{_includedir}/GeoIPCity.h
  71. %{_includedir}/GeoIPUpdate.h
  72. %{_libdir}/libGeoIP.so
  73. %{_libdir}/libGeoIPUpdate.so
  74. %changelog
  75. * Mon Oct 08 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-3
  76. - initial build for Vine Linux.
  77. * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-2.1
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  79. * Tue Sep 6 2011 Michael Fleming <mfleming+rpm@thatfleminggent.com> - 1.4.8-1.1
  80. - Remove -ipv6 path
  81. - Bump to 1.4.8 release
  82. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-0.2.20090931cvs
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  84. * Mon Aug 31 2009 Matt Domsch <mdomsch@fedoraproject.org> - 1.4.7.0.1.20090931
  85. - apply CVS HEAD 20090931 which includes IPv6 functions
  86. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-2
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  88. * Sun Mar 08 2009 Michael Fleming <mfleming+rpm@enlartenment.com> - 1.4.6-1
  89. - Add geoiplookup6 man page
  90. - Update to 1.4.6
  91. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-3
  92. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  93. * Sat Nov 29 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.5-2
  94. - Update to 1.4.5
  95. - Fix database URL locations in Perl helper scripts
  96. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-2
  97. - Autorebuild for GCC 4.3
  98. * Mon Jan 28 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.4-1
  99. - New upstream release.
  100. * Wed Sep 5 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.3-1
  101. - New upstream release.
  102. - Fix GeoIPCity fetcher script
  103. - Update License tag
  104. * Mon Feb 12 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.2-1
  105. - New upstream release.
  106. * Mon Jan 8 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.1-2
  107. - License is actually LGPL now.
  108. * Sun Jan 7 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.1-1
  109. - New upstream release
  110. - Add fetch-geoipdata* scripts to pull free databases automatically if
  111. desired (bz #198137)
  112. - README.fedora added to briefly explain above.
  113. * Mon Nov 27 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.0-4
  114. - Fix %%install scripts to satisfy newer mock builds
  115. * Sun Sep 3 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.0-3
  116. - Upstream upgrade
  117. - Added LICENSE.txt file to %%doc, covering GeoIP country/city data license
  118. (bz #198137)
  119. * Mon May 15 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.17-1
  120. - New upstream release (minor fixes)
  121. * Mon May 1 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.16-1
  122. - New upstream release
  123. - Add INSTALL document to package.
  124. * Sat Feb 18 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-3
  125. - Fix Obsoletes/Provides for old "geoip"-convention packages
  126. - Move .so symlinks to -devel where they should be
  127. * Fri Feb 10 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-2
  128. - Remamed to match upstream tarball name
  129. - Removed static libraries
  130. - Added symlinks to packages
  131. - Mark config file noreplace
  132. * Sun Feb 5 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-1
  133. - Initial review package for Extras