Package init
This commit is contained in:
commit
057908e28a
BIN
autogen-5.18.14.tar.xz
Normal file
BIN
autogen-5.18.14.tar.xz
Normal file
Binary file not shown.
25
autogen-multilib.patch
Normal file
25
autogen-multilib.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
diff -up autogen-5.18/autoopts/autoopts-config.in.multilib autogen-5.18/autoopts/autoopts-config.in
|
||||||
|
--- autogen-5.18/autoopts/autoopts-config.in.multilib 2013-07-15 02:37:20.000000000 +0200
|
||||||
|
+++ autogen-5.18/autoopts/autoopts-config.in 2013-07-29 15:41:26.654229342 +0200
|
||||||
|
@@ -17,17 +17,17 @@
|
||||||
|
includedir="@includedir@"
|
||||||
|
exec_prefix="@exec_prefix@"
|
||||||
|
bindir="@bindir@"
|
||||||
|
- libdir="@libdir@"
|
||||||
|
- ldopts="@AG_LDFLAGS@"
|
||||||
|
+ libdir=""
|
||||||
|
+ ldopts=""
|
||||||
|
exeext="@EXEEXT@"
|
||||||
|
version="@AO_CURRENT@:@AO_REVISION@:@AO_AGE@"
|
||||||
|
dotver="@AO_CURRENT@.@AO_REVISION@.@AO_AGE@"
|
||||||
|
pkgdatadir="${datadir}/${package}"
|
||||||
|
autogen="${bindir}/autogen${exeext}"
|
||||||
|
- ldflags="-L${libdir} -lopts"
|
||||||
|
+ ldflags="-lopts"
|
||||||
|
libs="${ldflags}"
|
||||||
|
libsrc="${pkgdatadir}/libopts-${dotver}.tar.gz"
|
||||||
|
- static_libs="${libdir}/libopts.a"
|
||||||
|
+ static_libs=""
|
||||||
|
cflags="-I${includedir}"
|
||||||
|
test 'X@ENABLE_STATIC@' = Xno && static_libs=''
|
||||||
|
case "${libdir}" in
|
||||||
101
autogen.spec
Normal file
101
autogen.spec
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
Name: autogen
|
||||||
|
Version: 5.18.14
|
||||||
|
Release: 3
|
||||||
|
License: GPLv2+ and GPLv3+
|
||||||
|
Summary: Automated text file generator
|
||||||
|
URL: http://www.gnu.org/software/autogen/
|
||||||
|
Provides: autogen-libopts
|
||||||
|
Obsoletes: autogen-libopts
|
||||||
|
Source0: ftp://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
|
Patch0: autogen-multilib.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc guile-devel libtool libxml2-devel
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
|
||||||
|
%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
|
||||||
|
synchronised.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for autogen
|
||||||
|
License: LGPLv3+
|
||||||
|
|
||||||
|
Requires: automake autogen pkgconfig
|
||||||
|
Provides: autogen-libopts-devel
|
||||||
|
Provides: pkgconfig(autoopts)
|
||||||
|
Obsoletes: autogen-libopts-devel
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains development files for autogen.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Documents for autogen
|
||||||
|
Buildarch: noarch
|
||||||
|
Requires: man
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Man pages and other related documents.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Static libraries are needed to run test-suite.
|
||||||
|
export CFLAGS="$RPM_OPT_FLAGS -Wno-implicit-fallthrough -Wno-format-overflow \
|
||||||
|
-Wno-format-truncation"
|
||||||
|
%configure
|
||||||
|
|
||||||
|
# Omit unused direct shared library dependencies.
|
||||||
|
sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' ./libtool
|
||||||
|
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
%delete_la_and_a
|
||||||
|
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO pkg/libopts/COPYING.gplv3 pkg/libopts/COPYING.mbsd pkg/libopts/COPYING.lgplv3
|
||||||
|
%{_bindir}/columns
|
||||||
|
%{_bindir}/getdefs
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_bindir}/xml2ag
|
||||||
|
%dir %{_datadir}/%{name}
|
||||||
|
%{_datadir}/%{name}/*
|
||||||
|
%dir %{_libdir}/%{name}
|
||||||
|
%{_libdir}/%{name}/*
|
||||||
|
%{_libdir}/libopts.so.25*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_bindir}/autoopts-config
|
||||||
|
%{_datadir}/aclocal/autoopts.m4
|
||||||
|
%{_libdir}/libopts.so
|
||||||
|
%{_libdir}/pkgconfig/autoopts.pc
|
||||||
|
%dir %{_includedir}/autoopts
|
||||||
|
%{_includedir}/autoopts/options.h
|
||||||
|
%{_includedir}/autoopts/usage-txt.h
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/man1/autoopts-config.1.gz
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
%{_mandir}/man1/%{name}.1.gz
|
||||||
|
%{_mandir}/man1/columns.1.gz
|
||||||
|
%{_mandir}/man1/getdefs.1.gz
|
||||||
|
%{_mandir}/man1/xml2ag.1.gz
|
||||||
|
%{_infodir}/%{name}.info*.gz
|
||||||
|
%exclude %{_infodir}/dir
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 29 2019 hexiaowen <hexiaowen@huawei.com> - 5.18.14-3
|
||||||
|
- Package init
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user