[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for 1.6.21 to make rpmbuild work
From: |
Frank Schaeckermann |
Subject: |
Patch for 1.6.21 to make rpmbuild work |
Date: |
Fri, 18 Feb 2005 22:21:56 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041221 |
Hi,
I wanted to create a rpm package for 1.6.21 but encountered a few problems.
After fiddling with doc/Makefile.in to include a check if there is a
file 'dir' in the info directory before executing install-info and
fixing the parted.spec and parted.spec.in to include the parted.info.gz
and execution of install-info as post-install and pre-uninstall,
everything worked fine.
The attached patch contains the changes in the three files based on the
distributed parted-1.6.21.tar.gz.
Regards, Frank
diff -r -C 3 parted-1.6.21/doc/Makefile.in parted-1.6.21-new/doc/Makefile.in
*** parted-1.6.21/doc/Makefile.in 2005-01-16 00:59:52.000000000 +0100
--- parted-1.6.21-new/doc/Makefile.in 2005-02-18 21:43:00.000000000 +0100
***************
*** 450,455 ****
--- 450,456 ----
done
@$(POST_INSTALL)
@if (install-info --version && \
+ test -f $(DESTDIR)$(infodir)/dir && \
install-info --version 2>&1 | sed 1q | grep -i -v debian)
>/dev/null 2>&1; then \
list='$(INFO_DEPS)'; \
for file in $$list; do \
diff -r -C 3 parted-1.6.21/parted.spec parted-1.6.21-new/parted.spec
*** parted-1.6.21/parted.spec 2005-01-16 02:03:08.000000000 +0100
--- parted-1.6.21-new/parted.spec 2005-02-18 21:51:21.000000000 +0100
***************
*** 5,10 ****
--- 5,11 ----
%define sbindir /sbin
%define mandir /usr/share/man
%define aclocaldir /usr/share/aclocal
+ %define infodir /usr/share/info
Summary : flexible partitioning tool
***************
*** 54,65 ****
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
! %doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO doc/COPYING.DOC
doc/API doc/USER doc/FAT
%{prefix}/share/locale/*/*/*
%{sbindir}/*
%{mandir}/*/*
%{prefix}/lib/*.so*
--- 55,75 ----
rm -rf "$RPM_BUILD_ROOT"
+ %post
+ install-info --info-dir=/usr/share/info /usr/share/info/parted.info.gz
+
+
+ %preun
+ install-info --info-dir=/usr/share/info --remove
/usr/share/info/parted.info.gz
+
+
%files
%defattr(-,root,root)
! %doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO doc/API
doc/USER.jp doc/FAT doc/FAQ doc/FAQ-pt_BR
%{prefix}/share/locale/*/*/*
%{sbindir}/*
%{mandir}/*/*
+ %{infodir}/parted.info.gz
%{prefix}/lib/*.so*
***************
*** 71,76 ****
--- 81,90 ----
%{prefix}/lib/*.la*
%changelog
+ * Fri Feb 18 2005 Frank Schaeckermann <.......................>
+ - added parted.info.gz to files section
+ - added %post and %preun sections
+ - fixed %files %doc line
* Mon Mar 13 2000 Fabian Emmes <address@hidden>
- changed "unset LINGUAS" line
- reintroduced %build section ;)
diff -r -C 3 parted-1.6.21/parted.spec.in parted-1.6.21-new/parted.spec.in
*** parted-1.6.21/parted.spec.in 2003-03-09 03:26:15.000000000 +0100
--- parted-1.6.21-new/parted.spec.in 2005-02-18 21:51:34.000000000 +0100
***************
*** 5,10 ****
--- 5,11 ----
%define sbindir /sbin
%define mandir /usr/share/man
%define aclocaldir /usr/share/aclocal
+ %define infodir /usr/share/info
Summary : flexible partitioning tool
***************
*** 54,65 ****
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
! %doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO doc/COPYING.DOC
doc/API doc/USER doc/FAT
%{prefix}/share/locale/*/*/*
%{sbindir}/*
%{mandir}/*/*
%{prefix}/lib/*.so*
--- 55,75 ----
rm -rf "$RPM_BUILD_ROOT"
+ %post
+ install-info --info-dir=/usr/share/info /usr/share/info/parted.info.gz
+
+
+ %preun
+ install-info --info-dir=/usr/share/info --remove
/usr/share/info/parted.info.gz
+
+
%files
%defattr(-,root,root)
! %doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO doc/API
doc/USER.jp doc/FAT doc/FAQ doc/FAQ-pt_BR
%{prefix}/share/locale/*/*/*
%{sbindir}/*
%{mandir}/*/*
+ %{infodir}/parted.info.gz
%{prefix}/lib/*.so*
***************
*** 71,76 ****
--- 81,90 ----
%{prefix}/lib/*.la*
%changelog
+ * Fri Feb 18 2005 Frank Schaeckermann <.......................>
+ - added parted.info.gz to files section
+ - added %post and %preun sections
+ - fixed %files %doc line
* Mon Mar 13 2000 Fabian Emmes <address@hidden>
- changed "unset LINGUAS" line
- reintroduced %build section ;)
- Patch for 1.6.21 to make rpmbuild work,
Frank Schaeckermann <=