summaryrefslogtreecommitdiff
path: root/oregano.spec.in
blob: dc7f7b80912ac50768c411710c695e223840f17e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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/*/*