-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautogen.spec
151 lines (123 loc) · 4.07 KB
/
autogen.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
Name: autogen
Version: 5.11
License: GPLv3+
Group: Development/Tools
Summary: GNU autogen
Release: 1
URL: http://www.gnu.org/software/autogen/
Source: http://ftp.gnu.org/gnu/autogen/rel%{version}/autogen-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: m4
Conflicts: vpkg-SFWagen
Requires: guile
BuildRequires: guile gmp-devel
%description
AutoGen is a tool designed to simplify the creation and maintenance of
programs that contain large amounts of repetitious text. It is
especially valuable in programs that have several blocks of text that
must be kept synchronized.
%package libopts
Summary: Automated option processing library based on %{name}
# Although sources are dual licensed with BSD, some autogen generated files
# are only under LGPLv3+. We drop BSD to avoid multiple licensing scenario.
License: LGPLv3+
Group: System Environment/Libraries
%description libopts
Libopts is very powerful command line option parser consisting of a set of
AutoGen templates and a run time library that nearly eliminates the hassle of
parsing and documenting command line options.
%package libopts-devel
Summary: Development files for libopts
# Although sources are dual licensed with BSD, some autogen generated files
# are only under LGPLv3+. We drop BSD to avoid multiple licensing scenario.
License: LGPLv3+
Group: Development/Libraries
Requires: automake
Requires: %{name}-libopts = %{version}-%{release}
Requires: pkgconfig
%description libopts-devel
This package contains development files for libopts.
%prep
%setup -q
sed -i '\|/mk-agen-texi.sh|d' doc/Makefile.in
%build
CPPFLAGS="-I/usr/local/include/gmp32 -I/usr/local/include/guile"
export CPPFLAGS
%configure \
--with-libguile \
--with-libguile-cflags \
--with-libguile-libs
gmake
%install
rm -rf $RPM_BUILD_ROOT
gmake install DESTDIR=$RPM_BUILD_ROOT
rm %{buildroot}/%{_infodir}/dir
rm %{buildroot}/%{_libdir}/*.la
rm %{buildroot}/%{_libdir}/*.a
rm %{buildroot}/%{_datadir}/%{name}/autoopts.m4
rm %{buildroot}/%{_datadir}/%{name}/libopts-*.tar.gz
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ -x /usr/local/bin/install-info ] ; then
/usr/local/bin/install-info --info-dir=/usr/local/share/info \
/usr/local/share/info/%{name}.info
fi
%preun
if [ -x /usr/local/bin/install-info ] ; then
/usr/local/bin/install-info --delete --info-dir=/usr/local/share/info \
/usr/local/share/info/%{name}.info
fi
%files
%defattr(-,root,root,-)
%doc AUTHORS
%doc ChangeLog
%doc COPYING
%doc NEWS
%doc README
%doc THANKS
%doc TODO
%doc pkg/libopts/COPYING.gplv3
%{_bindir}/columns
%{_bindir}/getdefs
%{_bindir}/%{name}
%{_bindir}/xml2ag
%{_infodir}/%{name}.info*
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/columns.1*
%{_mandir}/man1/getdefs.1*
%{_mandir}/man1/xml2ag.1*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/stdoptions.def
%{_datadir}/%{name}/*.tpl
%files libopts
%defattr(-,root,root,-)
%doc pkg/libopts/COPYING.mbsd
%doc pkg/libopts/COPYING.lgplv3
%{_libdir}/libopts.so.*
%files libopts-devel
%defattr(-,root,root,-)
%{_bindir}/autoopts-config
%{_datadir}/aclocal/*.m4
%{_libdir}/libopts.so
%{_libdir}/pkgconfig/autoopts.pc
%{_mandir}/man1/autoopts-config.1*
%{_mandir}/man3/*
%dir %{_includedir}/autoopts
%{_includedir}/autoopts/options.h
%{_includedir}/autoopts/usage-txt.h
%changelog
* Thu Aug 05 2010 Orcan Ogetbil <[email protected]> - 5.11-1
- Latest version
* Mon Sep 28 2009 Dan Gopstein <[email protected]> - 5.9.8-1
- Updated to latest version, updated syntax
* Wed May 28 2008 David Diffenbaugh <[email protected]> - 5.9.5-1
- bumped to latest version
* Fri Feb 08 2008 David Diffenbaugh <[email protected]> - 5.9.4-2
removed info post and pre scripts, updated files section, removed info/dir
* Tue Feb 05 2008 David Diffenbaugh <[email protected]> - 5.9.4-1
- updated to 5.9.4
* Sat Oct 20 2007 David Lee Halik <[email protected]> - 5.9.3-1
- Bump to 5.9.3
* Wed Aug 22 2007 Naveen Gavini <[email protected]> - 5.9.2-1
- Updated to the latest version.