summaryrefslogtreecommitdiff
path: root/oregano.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'oregano.spec.in')
-rw-r--r--oregano.spec.in58
1 files changed, 58 insertions, 0 deletions
diff --git a/oregano.spec.in b/oregano.spec.in
new file mode 100644
index 0000000..dc7f7b8
--- /dev/null
+++ b/oregano.spec.in
@@ -0,0 +1,58 @@
+%define ver @VERSION@
+%define RELEASE 1
+%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
+%define prefix /usr
+
+Summary: Oregano
+Name: oregano
+Version: %ver
+Release: %rel
+Copyright: GPL
+Group: Applications/Engineering
+Source: http://gforge.lug.fi.uba.ar/scm/cvsweb.php/?cvsroot=arrakis
+Url: http://arrakis.gforge.lug.fi.uba.ar/
+BuildRoot: /var/tmp/oregano-%{PACKAGE_VERSION}-root
+Docdir: %{prefix}/doc
+
+Requires: libgnome2 >= 2.0.0
+Requires: libxml2 >= 2.0.0
+Requires: libglade2 >= 2.0
+
+%description
+Oregano, schematic capture and simulation of electronic circuits.
+
+%prep
+%setup -q
+
+%build
+%ifarch alpha
+ MYARCH_FLAGS="--host=alpha-redhat-linux"
+%endif
+CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix $MYARCH_FLAGS --sysconfdir=/etc
+
+if [ "$SMP" != "" ]; then
+ make -j$SMP "MAKE=make -j$SMP"
+else
+ make
+fi
+
+%install
+
+make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT/etc install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, root)
+
+%doc ChangeLog NEWS README COPYING TODO
+
+%{prefix}/bin/*
+%{prefix}/share/locale/*/*
+%{prefix}/share/gnome/help/oregano/*/*
+%{prefix}/share/gnome/apps/Applications/oregano.desktop
+%{prefix}/share/mime-info/*
+%{prefix}/share/pixmaps/*
+%{prefix}/share/oregano/*/*
+