]> git.pld-linux.org Git - packages/autogen.git/blob - autogen.spec
- fix building with guile 3.0, rel 3
[packages/autogen.git] / autogen.spec
1 Summary:        Automated program generator
2 Summary(pl.UTF-8):      Zautomatyzowany generator programów
3 Name:           autogen
4 Version:        5.18.16
5 Release:        3
6 License:        GPL v3+ (AutoGen), LGPL v2+ (genshell), LGPL v3+ or Modified BSD (AutoOpts library)
7 Group:          Development/Tools
8 Source0:        http://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz
9 # Source0-md5:  27c28df902a9fdb2b64f008a0a49fd05
10 Patch0:         %{name}-notinstalled.patch
11 Patch1:         %{name}-info.patch
12 Patch2:         %{name}-ksh.patch
13 Patch3:         %{name}-format-truncate.patch
14 Patch4:         guile3.0.patch
15 URL:            http://autogen.sourceforge.net/
16 BuildRequires:  guile-devel >= 5:2.0
17 BuildRequires:  libltdl-devel
18 BuildRequires:  libxml2-devel
19 BuildRequires:  tar >= 1:1.22
20 BuildRequires:  texinfo
21 BuildRequires:  xz
22 BuildConflicts: guile1-devel
23 Requires:       %{name}-libs = %{version}-%{release}
24 Suggests:       %{name}-devel = %{version}-%{release}
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 AutoGen is a tool designed for generating program files that contain
29 repetitive text with varied substitutions. Its goal is to simplify the
30 maintenance of programs that contain large amounts of repetitious
31 text. This is especially valuable if there are several blocks of such
32 text that must be kept synchronized in parallel tables.
33
34 %description -l pl.UTF-8
35 AutoGen to narzędzie zaprojektowane do generowania plików programów
36 zawierających powtarzający się tekst z różnymi podstawieniami. Celem
37 projektu jest uproszczenie zarządzania programów zawierających duże
38 ilości powtórzonego tekstu. Jest szczególnie wartościowy jeśli jest
39 kilka bloków takiego tekstu, które muszą być synchronizowane
40 równolegle.
41
42 %package libs
43 Summary:        Shared AutoOpts library
44 Summary(pl.UTF-8):      Biblioteka współdzielona AutoOpts
45 License:        LGPL v3+ or Modified BSD
46 Group:          Libraries
47 Conflicts:      autogen < 5.14
48
49 %description libs
50 Shared AutoOpts library.
51
52 %description libs -l pl.UTF-8
53 Biblioteka współdzielona AutoOpts.
54
55 %package devel
56 Summary:        Header files for AutoOpts library
57 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki AutoOpts
58 License:        LGPL v3+ or Modified BSD
59 Group:          Development/Libraries
60 Requires:       %{name}-libs = %{version}-%{release}
61
62 %description devel
63 Header files for AutoOpts library.
64
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki AutoOpts.
67
68 %package static
69 Summary:        Static AutoOpts library
70 Summary(pl.UTF-8):      Statyczna biblioteka AutoOpts
71 License:        LGPL v3+ or Modified BSD
72 Group:          Development/Libraries
73 Requires:       %{name}-devel = %{version}-%{release}
74
75 %description static
76 Static AutoOpts library.
77
78 %description static -l pl.UTF-8
79 Statyczna biblioteka AutoOpts.
80
81 %prep
82 %setup -q
83 %patch0 -p1
84 %patch1 -p1
85 %patch2 -p1
86 %patch3 -p1
87 %patch4 -p1
88
89 # force regeneration
90 %{__rm} doc/autogen.info*
91
92 %build
93 %{__libtoolize}
94 %{__aclocal}
95 %{__autoconf}
96 %{__autoheader}
97 %{__automake}
98 # don't require recent gcc just because of 'pragma GCC diagnostic ignored "-Wformat-truncation"'
99 CFLAGS="%{rpmcflags} -Wno-error=pragmas"
100 %configure \
101         --disable-dependency-tracking
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post
114 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
115
116 %postun
117 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
118
119 %post   libs -p /sbin/ldconfig
120 %postun libs -p /sbin/ldconfig
121
122 %files
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog NEWS README THANKS TODO
125 %attr(755,root,root) %{_bindir}/autogen
126 %attr(755,root,root) %{_bindir}/columns
127 %attr(755,root,root) %{_bindir}/getdefs
128 %attr(755,root,root) %{_bindir}/xml2ag
129 %dir %{_libdir}/%{name}
130 %{_libdir}/%{name}/tpl-config.tlib
131 %dir %{_datadir}/%{name}
132 %{_datadir}/%{name}/*.def
133 %{_datadir}/%{name}/*.lic
134 %{_datadir}/%{name}/*.m4
135 %{_datadir}/%{name}/*.pm
136 %{_datadir}/%{name}/*.tlib
137 %{_datadir}/%{name}/*.tpl
138 %{_datadir}/%{name}/libopts-*.tar.gz
139 %attr(755,root,root) %{_datadir}/%{name}/man2mdoc
140 %attr(755,root,root) %{_datadir}/%{name}/man2texi
141 %attr(755,root,root) %{_datadir}/%{name}/mdoc2man
142 %attr(755,root,root) %{_datadir}/%{name}/mdoc2texi
143 %attr(755,root,root) %{_datadir}/%{name}/texi2man
144 %attr(755,root,root) %{_datadir}/%{name}/texi2mdoc
145 %{_infodir}/autogen.info*
146 %{_mandir}/man1/autogen.1*
147 %{_mandir}/man1/columns.1*
148 %{_mandir}/man1/getdefs.1*
149 %{_mandir}/man1/xml2ag.1*
150
151 %files libs
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/libopts.so.*.*.*
154 %attr(755,root,root) %ghost %{_libdir}/libopts.so.25
155
156 %files devel
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_bindir}/autoopts-config
159 %attr(755,root,root) %{_libdir}/libopts.so
160 %{_libdir}/libopts.la
161 %{_includedir}/autoopts
162 %{_aclocaldir}/autoopts.m4
163 %{_pkgconfigdir}/autoopts.pc
164 %{_mandir}/man1/autoopts-config.1*
165 %{_mandir}/man3/ao_string_tokenize.3*
166 %{_mandir}/man3/configFileLoad.3*
167 %{_mandir}/man3/option*.3*
168 %{_mandir}/man3/str*.3*
169
170 %files static
171 %defattr(644,root,root,755)
172 %{_libdir}/libopts.a
This page took 0.069993 seconds and 4 git commands to generate.