Dnia wto 15. lutego 2005 13:10, Dariusz Rojewski napisał:
>
> Używaj %{__make} install, po co robić to ręcznie? :)Nie wiem czy Ci o to chodziło, ale zmieniłem. Przy okazji musiałem pozmieniać MakeFile. Przysyłam wszystkie pliki. Na początku nie dawałem tego, gdyż myślałem że obie metody instalacji są dobre, ale skoro tak... Pozdrawiam Marcin Banasiak
--- xmlindent.spec 2005-02-15 09:51:07.000000000 +0100 +++ xmlindent.spec.new 2005-02-15 17:08:03.387480712 +0100 @@ -8,6 +8,7 @@ Group: Applications/Publishing/XML Source0: http://dl.sourceforge.net/xmlindent/%{name}-%{version}.tar.gz # Source0-md5: c08be3867ee906ca69b949d55a4f3780 +Patch0: %{name}-MakeFilefix.patch URL: http://xmlindent.sourceforge.net/ BuildRequires: flex BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id- u -n) @@ -21,16 +22,15 @@ %prep %setup -q +%patch0 -p1 %build %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} -install xmlindent $RPM_BUILD_ROOT%{_bindir} -install xmlindent.1 $RPM_BUILD_ROOT%{_mandir}/man1/xmlindent.1 +%{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT @@ -54,4 +54,4 @@ - proper license Revision 1.1 2005/02/15 07:44:26 jm -- new spec by Marcin Banasiak +- new spec by Marcin Banasiak \ Brak znaku nowej linii na końcu pliku
diff -urN xmlindent-0.2.17/Makefile xmlindent-0.2.17.new/Makefile --- xmlindent-0.2.17/Makefile 2004-09-07 13:36:01.000000000 +0200 +++ xmlindent-0.2.17.new/Makefile 2005-02-15 17:00:04.795237792 +0100 @@ -1,6 +1,6 @@ all: xmlindent -PREFIX=/usr/local +PREFIX=/usr BIN_INSTALL_DIR=$(PREFIX)/bin MAN_INSTALL_DIR=$(PREFIX)/share/man/man1 @@ -13,10 +13,10 @@ flex xmlindent.yy install: xmlindent - mkdir -p $(BIN_INSTALL_DIR) - mkdir -p $(MAN_INSTALL_DIR) - install -m555 xmlindent $(BIN_INSTALL_DIR)/xmlindent - install -m444 xmlindent.1 $(MAN_INSTALL_DIR)/xmlindent.1 + mkdir -p $(DESTDIR)$(BIN_INSTALL_DIR) + mkdir -p $(DESTDIR)$(MAN_INSTALL_DIR) + install -m775 xmlindent $(DESTDIR)$(BIN_INSTALL_DIR)/ + install -m644 xmlindent.1 $(DESTDIR)$(MAN_INSTALL_DIR)/xmlindent.1 uninstall: rm -f $(BIN_INSTALL_DIR)/xmlindent
_______________________________________________ pld-devel-pl mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl
