]>
Commit | Line | Data |
---|---|---|
04e2435f | 1 | Summary: Automated program generator |
cfcea6ae | 2 | Summary(pl.UTF-8): Zautomatyzowany generator programów |
04e2435f | 3 | Name: autogen |
13572aa8 | 4 | Version: 5.15 |
faf7c6f5 | 5 | Release: 2 |
79c152e5 JB |
6 | License: GPL v3+ (AutoGen), LGPL v3+ or Modified BSD (AutoOpts library) |
7 | Group: Development/Tools | |
13572aa8 JB |
8 | Source0: http://ftp.gnu.org/gnu/autogen/rel5.15/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 5fba3c0e1ec0965061f27e8e79bd6da2 | |
79c152e5 JB |
10 | Patch0: %{name}-notinstalled.patch |
11 | Patch1: %{name}-info.patch | |
95820b33 | 12 | URL: http://autogen.sourceforge.net/ |
04e2435f | 13 | BuildRequires: guile-devel |
0d28a1a7 | 14 | BuildRequires: libltdl-devel |
04e2435f | 15 | BuildRequires: libxml2-devel |
79c152e5 | 16 | BuildRequires: tar >= 1:1.22 |
04e2435f | 17 | BuildRequires: texinfo |
79c152e5 JB |
18 | BuildRequires: xz |
19 | Requires: %{name}-libs = %{version}-%{release} | |
20 | Suggests: %{name}-devel = %{version}-%{release} | |
04e2435f | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | AutoGen is a tool designed for generating program files that contain | |
25 | repetitive text with varied substitutions. Its goal is to simplify the | |
26 | maintenance of programs that contain large amounts of repetitious | |
27 | text. This is especially valuable if there are several blocks of such | |
28 | text that must be kept synchronized in parallel tables. | |
29 | ||
254e074f JR |
30 | %description -l pl.UTF-8 |
31 | AutoGen to narzędzie zaprojektowane do generowania plików programów | |
32 | zawierających powtarzający się tekst z różnymi podstawieniami. Celem | |
33 | projektu jest uproszczenie zarządzania programów zawierających duże | |
34 | ilości powtórzonego tekstu. Jest szczególnie wartościowy jeśli jest | |
35 | kilka bloków takiego tekstu, które muszą być synchronizowane | |
36 | równolegle. | |
04e2435f | 37 | |
79c152e5 JB |
38 | %package libs |
39 | Summary: Shared AutoOpts library | |
40 | Summary(pl.UTF-8): Biblioteka współdzielona AutoOpts | |
41 | License: LGPL v3+ or Modified BSD | |
42 | Group: Libraries | |
43 | Conflicts: autogen < 5.14 | |
44 | ||
45 | %description libs | |
46 | Shared AutoOpts library. | |
47 | ||
48 | %description libs -l pl.UTF-8 | |
49 | Biblioteka współdzielona AutoOpts. | |
50 | ||
04e2435f | 51 | %package devel |
79c152e5 JB |
52 | Summary: Header files for AutoOpts library |
53 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AutoOpts | |
54 | License: LGPL v3+ or Modified BSD | |
04e2435f | 55 | Group: Development/Libraries |
79c152e5 | 56 | Requires: %{name}-libs = %{version}-%{release} |
04e2435f | 57 | |
58 | %description devel | |
79c152e5 | 59 | Header files for AutoOpts library. |
04e2435f | 60 | |
254e074f | 61 | %description devel -l pl.UTF-8 |
79c152e5 | 62 | Pliki nagłówkowe biblioteki AutoOpts. |
04e2435f | 63 | |
64 | %package static | |
79c152e5 JB |
65 | Summary: Static AutoOpts library |
66 | Summary(pl.UTF-8): Statyczna biblioteka AutoOpts | |
67 | License: LGPL v3+ or Modified BSD | |
04e2435f | 68 | Group: Development/Libraries |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
79c152e5 | 72 | Static AutoOpts library. |
04e2435f | 73 | |
254e074f | 74 | %description static -l pl.UTF-8 |
79c152e5 | 75 | Statyczna biblioteka AutoOpts. |
04e2435f | 76 | |
77 | %prep | |
79c152e5 JB |
78 | %setup -q |
79 | %patch0 -p1 | |
80 | %patch1 -p1 | |
04e2435f | 81 | |
82 | %build | |
83 | %configure | |
84 | %{__make} | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
74470496 | 88 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
04e2435f | 89 | |
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
79c152e5 | 93 | # .pc file is arch-dependent, so use arch-dependent pkgconfigdir |
74470496 AM |
94 | mv $RPM_BUILD_ROOT%{_datadir}/pkgconfig/autoopts.pc $RPM_BUILD_ROOT%{_pkgconfigdir} |
95 | ||
04e2435f | 96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post | |
04e2435f | 100 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
101 | ||
102 | %postun | |
04e2435f | 103 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
104 | ||
79c152e5 JB |
105 | %post libs -p /sbin/ldconfig |
106 | %postun libs -p /sbin/ldconfig | |
107 | ||
04e2435f | 108 | %files |
109 | %defattr(644,root,root,755) | |
110 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
79c152e5 JB |
111 | %attr(755,root,root) %{_bindir}/autogen |
112 | %attr(755,root,root) %{_bindir}/columns | |
113 | %attr(755,root,root) %{_bindir}/getdefs | |
114 | %attr(755,root,root) %{_bindir}/xml2ag | |
04e2435f | 115 | %{_datadir}/%{name} |
116 | %{_infodir}/autogen.info* | |
79c152e5 JB |
117 | %{_mandir}/man1/autogen.1* |
118 | %{_mandir}/man1/columns.1* | |
119 | %{_mandir}/man1/getdefs.1* | |
120 | %{_mandir}/man1/xml2ag.1* | |
121 | ||
122 | %files libs | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_libdir}/libopts.so.*.*.* | |
125 | %attr(755,root,root) %ghost %{_libdir}/libopts.so.25 | |
04e2435f | 126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
79c152e5 JB |
129 | %attr(755,root,root) %{_bindir}/autoopts-config |
130 | %attr(755,root,root) %{_libdir}/libopts.so | |
131 | %{_libdir}/libopts.la | |
585e62ed | 132 | %{_includedir}/autoopts |
79c152e5 JB |
133 | %{_aclocaldir}/autoopts.m4 |
134 | %{_pkgconfigdir}/autoopts.pc | |
135 | %{_mandir}/man1/autoopts-config.1* | |
136 | %{_mandir}/man3/ao_string_tokenize.3* | |
137 | %{_mandir}/man3/configFileLoad.3* | |
138 | %{_mandir}/man3/option*.3* | |
139 | %{_mandir}/man3/str*.3* | |
04e2435f | 140 | |
141 | %files static | |
142 | %defattr(644,root,root,755) | |
79c152e5 | 143 | %{_libdir}/libopts.a |