]> git.pld-linux.org Git - packages/asp2php.git/commitdiff
- use __cc macro
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 4 Aug 2003 12:08:30 +0000 (12:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    asp2php.spec -> 1.10

asp2php.spec

index a9e68ed2b5e79ba9738560c9c66551107af8aa82..d06cb1e94d33b95f80b4caa144aeb8fd41216e82 100644 (file)
@@ -25,8 +25,6 @@ URL:          http://asp2php.naken.cc/
 BuildRequires: gtk+-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define doc_dir        /usr/share/doc/%{name}-%{version}
-
 %description
 asp2php converts WWW Active Server Pages (ASP) files that run on the
 Microsoft IIS Web Server into PHP pages to run on Apache.
@@ -170,7 +168,7 @@ filformatkonverteraren asp2php.
 
 %prep
 %setup -q -n %{name}
-perl -pi -e "s/gcc/gcc %{rpmcflags}/g" Makefile
+perl -pi -e "s/gcc/%{__cc} %{rpmcflags}/g" Makefile
 
 %build
 %{__make}
@@ -178,21 +176,16 @@ perl -pi -e "s/gcc/gcc %{rpmcflags}/g" Makefile
 
 %install
 rm -rf $RPM_BUILD_ROOT
-[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
-
-install -d %{buildroot}%{_bindir}
-cp -f asp2php gtkasp2php %{buildroot}%{_bindir}
+install -d $RPM_BUILD_ROOT%{_bindir}
 
-# Install documentation by hand
-install -d %{buildroot}%{doc_dir}
-cp -p README LICENSE %{buildroot}%{doc_dir}
+install asp2php gtkasp2php $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc %{doc_dir}
+%doc README LICENSE
 %attr(755,root,root) %{_bindir}/asp2php
 
 %files gtk
This page took 0.109852 seconds and 4 git commands to generate.