libpaper/libpaper.spec

100 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:57:30 -04:00
Name: libpaper
2023-07-14 15:48:19 +08:00
Version: 1.1.29
Release: 1
2019-09-30 10:57:30 -04:00
Summary: Library for handling paper characteristics
License: GPLv2
URL: http://packages.qa.debian.org/libp/libpaper.html
2020-07-22 18:25:32 +08:00
Source0: http://ftp.debian.org/debian/pool/main/libp/libpaper/%{name}_%{version}.tar.gz
2020-03-18 17:10:10 +08:00
Patch0: libpaper-useglibcfallback.patch
Patch1: libpaper-file-leak.patch
2020-03-18 16:59:42 +08:00
2019-09-30 10:57:30 -04:00
BuildRequires: gcc, libtool, gettext, gawk
%description
The libpaper paper-handling library automates recognition of many different
paper types and sizes for programs that need to deal with printed output.
%package devel
Summary: Development files for using libpaper
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the development files.
%package help
Summary: Documents for libpaper
Buildarch: noarch
Requires: man
%description help
Man pages and other related documents for libpaper.
%prep
2020-07-22 18:25:32 +08:00
%autosetup -n %{name}-%{version} -p1
2019-09-30 10:57:30 -04:00
libtoolize
%build
touch AUTHORS NEWS
aclocal
2020-07-22 18:25:32 +08:00
autoreconf -fi
2019-09-30 10:57:30 -04:00
automake -a
%configure --disable-static
%disable_rpath
%make_build
%install
%make_install
rm $RPM_BUILD_ROOT%{_libdir}/*.la
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
echo '# Simply write the paper name. See papersize(5) for possible values' > $RPM_BUILD_ROOT%{_sysconfdir}/papersize
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/libpaper.d
for i in cs da de es fr gl hu it ja nl pt_BR sv tr uk vi; do
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/;
msgfmt debian/po/$i.po -o $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/%{name}.mo;
done
%find_lang %{name}
%ldconfig_scriptlets
%files -f %{name}.lang
%doc ChangeLog README
%license COPYING
%config(noreplace) %{_sysconfdir}/papersize
%dir %{_sysconfdir}/libpaper.d
%{_bindir}/paperconf
%{_libdir}/libpaper.so.1.1.2
%{_libdir}/libpaper.so.1
%{_sbindir}/paperconfig
%files devel
%{_includedir}/paper.h
%{_libdir}/libpaper.so
%files help
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_mandir}/man3/*
%changelog
2023-07-14 15:48:19 +08:00
* Fri Jul 14 2023 fuanan <fuanan3@h-partners.com> - 1.1.29-1
- update version to 1.1.29
* Thu Oct 27 2022 dongyuzhen <dongyuzhen@h-partners.com> - 1.1.28-2
- Rebuild for next release
2020-07-22 18:25:32 +08:00
* Wed Jul 22 2020 zhangxingliang <zhangxingliang3@huawei.com> - 1.1.28-1
- Type:update
- ID:NA
- SUG:NA
- DESC:update to 1.1.28
2020-03-18 16:59:42 +08:00
* Wed Mar 18 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.1.24-25
- fix memory leark and bugfix
2022-06-15 03:12:28 +00:00
* Thu Jan 09 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.1.24-24
2020-01-09 15:58:01 +08:00
- remove useless patch
2019-09-30 10:57:30 -04:00
* Thu Sep 05 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.24-23
- Package init