]>
Commit | Line | Data |
---|---|---|
e798650f JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without java # Java/JNI support | |
0c711014 | 4 | |
761a486e | 5 | Summary: Cartographic projection software |
d26f67ea | 6 | Summary(pl.UTF-8): Oprogramowanie do rzutów kartograficznych |
761a486e | 7 | Name: proj |
988f9b0c | 8 | Version: 4.9.2 |
0c711014 | 9 | Release: 2 |
0599e440 JB |
10 | Group: Libraries |
11 | License: MIT | |
8b7119ab | 12 | Source0: ftp://ftp.remotesensing.org/proj/%{name}-%{version}.tar.gz |
988f9b0c | 13 | # Source0-md5: 9843131676e31bbd903d60ae7dc76cf9 |
8b7119ab | 14 | Source1: ftp://ftp.remotesensing.org/proj/%{name}-pdf-docs.tar.gz |
034139fa | 15 | # Source1-md5: 7c8f48f0fddf0d5730f4b27b3f09e6c1 |
992971c8 | 16 | Patch0: %{name}-am.patch |
0599e440 | 17 | URL: http://www.remotesensing.org/proj/ |
e41b9efc | 18 | BuildRequires: autoconf >= 2.59 |
8be63893 | 19 | BuildRequires: automake |
e798650f | 20 | %{?with_java:BuildRequires: jdk} |
8be63893 | 21 | BuildRequires: libtool |
761a486e | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
0599e440 JB |
25 | Cartographic projection software. |
26 | ||
3af59de0 JR |
27 | %description -l pl.UTF-8 |
28 | Oprogramowanie do rzutów kartograficznych. | |
761a486e | 29 | |
30 | %package devel | |
0599e440 | 31 | Summary: proj header files |
0d136fd0 | 32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki proj |
761a486e | 33 | Group: Development/Libraries |
5568aaa4 | 34 | Requires: %{name} = %{version}-%{release} |
761a486e | 35 | |
36 | %description devel | |
0599e440 | 37 | This package contains proj header files. |
761a486e | 38 | |
3af59de0 JR |
39 | %description devel -l pl.UTF-8 |
40 | Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji | |
41 | korzystających z biblioteki proj. | |
761a486e | 42 | |
43 | %package static | |
44 | Summary: proj static libraries | |
d26f67ea | 45 | Summary(pl.UTF-8): Biblioteki statyczne libPropList |
761a486e | 46 | Group: Development/Libraries |
5568aaa4 | 47 | Requires: %{name}-devel = %{version}-%{release} |
761a486e | 48 | |
49 | %description static | |
0599e440 | 50 | This package contains static proj libraries. |
761a486e | 51 | |
3af59de0 | 52 | %description static -l pl.UTF-8 |
0599e440 | 53 | Ten pakiet zawiera statyczne biblioteki proj. |
761a486e | 54 | |
55 | %package progs | |
56 | Summary: Cartographic projection software | |
d26f67ea | 57 | Summary(pl.UTF-8): Oprogramowanie do rzutów kartograficznych |
761a486e | 58 | Group: Applications |
5568aaa4 | 59 | Requires: %{name} = %{version}-%{release} |
761a486e | 60 | |
61 | %description progs | |
0599e440 JB |
62 | Package contains cartographic projection and coordinate system |
63 | filters. | |
64 | ||
3af59de0 JR |
65 | %description progs -l pl.UTF-8 |
66 | Ten pakiet zawiera filtry do rzutów kartograficznych i układów | |
67 | współrzędnych. | |
761a486e | 68 | |
69 | %package doc | |
7544f70c | 70 | Summary: Manuals for cartographic projection software |
0d136fd0 | 71 | Summary(pl.UTF-8): Dokumentacja do oprogramowania proj |
7544f70c | 72 | Group: Documentation |
5568aaa4 | 73 | Requires: %{name} = %{version}-%{release} |
0c711014 ER |
74 | %if "%{_rpmversion}" >= "5" |
75 | BuildArch: noarch | |
76 | %endif | |
761a486e | 77 | |
78 | %description doc | |
0599e440 JB |
79 | Manuals for cartographic projection software. |
80 | ||
3af59de0 JR |
81 | %description doc -l pl.UTF-8 |
82 | Dokumentacja do oprogramowania do rzutów kartograficznych proj. | |
0599e440 | 83 | |
761a486e | 84 | %prep |
034139fa | 85 | %setup -q -a1 |
e798650f | 86 | %patch0 -p1 |
761a486e | 87 | |
88 | %build | |
bcd3f8fc | 89 | %{__libtoolize} |
8c81833e | 90 | %{__aclocal} |
8be63893 | 91 | %{__autoconf} |
034139fa | 92 | %{__autoheader} |
8be63893 | 93 | %{__automake} |
e798650f JB |
94 | %configure \ |
95 | %{!?with_java:--without-jni} | |
761a486e | 96 | |
97 | %{__make} | |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
761a486e | 101 | |
3ca7ee94 JB |
102 | %{__make} install \ |
103 | DESTDIR=$RPM_BUILD_ROOT | |
761a486e | 104 | |
0599e440 JB |
105 | %clean |
106 | rm -rf $RPM_BUILD_ROOT | |
761a486e | 107 | |
50ae8e17 | 108 | %post -p /sbin/ldconfig |
109 | %postun -p /sbin/ldconfig | |
761a486e | 110 | |
761a486e | 111 | %files |
112 | %defattr(644,root,root,755) | |
a5d54c0a | 113 | %doc AUTHORS COPYING ChangeLog NEWS README |
d970ab1f | 114 | %attr(755,root,root) %{_libdir}/libproj.so.*.*.* |
992971c8 | 115 | %attr(755,root,root) %ghost %{_libdir}/libproj.so.9 |
0599e440 | 116 | %dir %{_datadir}/proj |
992971c8 | 117 | %{_datadir}/proj/CH |
761a486e | 118 | %{_datadir}/proj/GL27 |
d809c57b | 119 | %{_datadir}/proj/IGNF |
761a486e | 120 | %{_datadir}/proj/nad27 |
121 | %{_datadir}/proj/nad83 | |
a5d54c0a | 122 | %{_datadir}/proj/nad.lst |
761a486e | 123 | %{_datadir}/proj/world |
124 | %{_datadir}/proj/epsg | |
a5d54c0a | 125 | %{_datadir}/proj/esri |
034139fa JB |
126 | %{_datadir}/proj/esri.extra |
127 | %{_datadir}/proj/other.extra | |
988f9b0c | 128 | %{_datadir}/proj/proj_def.dat |
761a486e | 129 | |
761a486e | 130 | %files devel |
131 | %defattr(644,root,root,755) | |
0599e440 | 132 | %attr(755,root,root) %{_libdir}/libproj.so |
75bc3f84 | 133 | %{_libdir}/libproj.la |
992971c8 JB |
134 | %{_includedir}/geodesic.h |
135 | %{_includedir}/org_proj4_PJ.h | |
0d136fd0 JB |
136 | %{_includedir}/org_proj4_Projections.h |
137 | %{_includedir}/proj_api.h | |
992971c8 | 138 | %{_includedir}/projects.h |
e798650f | 139 | %{_pkgconfigdir}/proj.pc |
992971c8 | 140 | %{_mandir}/man3/geodesic.3* |
d970ab1f | 141 | %{_mandir}/man3/pj_init.3* |
761a486e | 142 | |
143 | %files static | |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/libproj.a | |
146 | ||
0599e440 JB |
147 | %files progs |
148 | %defattr(644,root,root,755) | |
0d136fd0 JB |
149 | %attr(755,root,root) %{_bindir}/cs2cs |
150 | %attr(755,root,root) %{_bindir}/geod | |
151 | %attr(755,root,root) %{_bindir}/invgeod | |
152 | %attr(755,root,root) %{_bindir}/invproj | |
153 | %attr(755,root,root) %{_bindir}/nad2bin | |
0d136fd0 JB |
154 | %attr(755,root,root) %{_bindir}/proj |
155 | %{_mandir}/man1/cs2cs.1* | |
156 | %{_mandir}/man1/geod.1* | |
0d136fd0 | 157 | %{_mandir}/man1/proj.1* |
0599e440 | 158 | |
761a486e | 159 | %files doc |
160 | %defattr(644,root,root,755) | |
e41b9efc | 161 | %doc *.pdf |