General
Start
APT/YUM/Smart config
List of packages
GPG key
Mirrors
Recent changes
How you can help
Pydar2
Thanks:
Primary buildsystem hosted at ithomi
SUSE and Mandrake builds made by the openSUSE build service
Static site hosted at ULYSSIS
Primary mirrors hosted at BELNET, HEAnet, 3TI
Varia:
Random picture!
Looking for a java job?
Leuven blogt

asp2php spec file : Dries RPM Repository

Back to the asp2php rpms

Current spec in pydar2:


# $Id: asp2php.spec 4303 2006-04-18 22:05:03Z dries $
# Authority: dag
# Upstream: Michael Kohn 

# Tag: test

%{?dist: %{expand: %%define %dist 1}}

%{?rh7:%define _without_freedesktop 1}
%{?el2:%define _without_freedesktop 1}
%{?rh6:%define _without_freedesktop 1}

Summary: Converts WWW Active Server Pages to PHP pages
Name: asp2php
Version: 0.76.23
Release: 1.2
License: GPL
Group: Development/Tools
URL: http://asp2php.naken.cc/

Source: http://downloads.mikekohn.net/asp2php/asp2php-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: gtk+-devel
%{?!_without_freedesktop:BuildRequires: desktop-file-utils}

%description
asp2php converts WWW Active Server Pages (ASP) files that run on the Microsoft
IIS Web Server into PHP pages to run on Apache.

%package gtk
Summary: Graphical frontend for asp2php
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
#Obsoletes: asp2php-gtk <= %{version}

%description gtk
Graphical frontend to asp2php.

%prep
%setup

%{__cat} <gtkasp2php.desktop
[Desktop Entry]
Name=ASP To PHP Converor
Comment=Converts ASP files to PHP
Icon=redhat-programming.png
Exec=gtkasp2php
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;Application;Development;
EOF

%build
%{__make} default gui \
	CFLAGS="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 asp2php %{buildroot}%{_bindir}/asp2php
%{__install} -Dp -m0755 gtkasp2php %{buildroot}%{_bindir}/gtkasp2php

%if %{?_without_freedesktop:1}0
	%{__install} -Dp -m0644 gtkasp2php.desktop %{buildroot}%{_datadir}/gnome/apps/Development/gtkasp2php.desktop
%else
	%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
	desktop-file-install --vendor %{desktop_vendor}    \
		--add-category X-Red-Hat-Base              \
		--dir %{buildroot}%{_datadir}/applications \
		gtkasp2php.desktop
%endif

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc *.png CHANGES LICENSE README sample/
%{_bindir}/asp2php

%files gtk
%defattr(-, root, root, 0755)
%{_bindir}/gtkasp2php
%{?_without_freedesktop:%{_datadir}/gnome/apps/Development/gtkasp2php.desktop}
%{!?_without_freedesktop:%{_datadir}/applications/%{desktop_vendor}-gtkasp2php.desktop}

%changelog
* Sat Apr 08 2006 Dries Verachtert  - 0.76.23-1.2
- Rebuild for Fedora Core 5.

* Sun Oct 10 2004 Dag Wieers  - 0.76.23-1
- Updated to release 0.76.23.

* Fri Apr 09 2004 Dag Wieers  - 0.76.19-1
- Initial package. (using DAR)