File: mergeant.spec_mdk.in

package info (click to toggle)
mergeant 0.67-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,736 kB
  • ctags: 869
  • sloc: ansic: 9,388; sh: 8,954; makefile: 222; xml: 74
file content (103 lines) | stat: -rw-r--r-- 2,623 bytes parent folder | download
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Note that this is NOT a relocatable package
# defaults for redhat
%define name	@PACKAGE@
%define ver	@VERSION@
%define prefix     /usr
%define sysconfdir /etc

%define  RELEASE 1mdk
%define  rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}

Summary: Mergeant
Name: 		%name
Version:	%ver
Release: 	%rel
Copyright: 	GPL
Group: 		Office
Source:		%{name}-%{ver}.tar.gz
BuildRoot: 	/tmp/%{name}-%{ver}-root
URL: 		http://gasql.sourceforge.net/
DocDir: 	%{prefix}/share/doc

# Icons for the menu system
Source10: %{name}.16.xpm
Source11: %{name}.32.xpm
Source12: %{name}.48.xpm

%description
Mergeant is a database data access tool working with libgnomedb and libgda

%prep
rm -rf $RPM_BUILD_ROOT

%setup




%build

CFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%{prefix} --sysconfdir=%{sysconfdir} --disable-update-mimedb

if [ "$SMP" != "" ]; then
  (make "MAKE=make -k -j $SMP"; exit 0)
  make
else
  make
fi

%install
make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} \
MERGEANT_helpdir=$RPM_BUILD_ROOT%{prefix}/share/gnome/help/mergeant \
Applicationsdir=$RPM_BUILD_ROOT%{prefix}/share/applications \
Pixmapdir=$RPM_BUILD_ROOT%{prefix}/share/pixmaps/mergeant \
install

strip $RPM_BUILD_ROOT%{prefix}/bin/* || :

install -d $RPM_BUILD_ROOT%{_menudir}
cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}):command="%{_bindir}/mergeant" icon="mergeant.xpm" \
 needs="X11" section="Applications/Databases" title="Mergeant" \
 longtitle="A database user tool to manipulate data"
EOF

install -d $RPM_BUILD_ROOT%{_miconsdir}
install -d $RPM_BUILD_ROOT%{_liconsdir}
install %{SOURCE10} $RPM_BUILD_ROOT%{_miconsdir}/%{name}.xpm
install %{SOURCE11} $RPM_BUILD_ROOT%{_iconsdir}/%{name}.xpm
install %{SOURCE12} $RPM_BUILD_ROOT%{_liconsdir}/%{name}.xpm

%clean
rm -rf $RPM_BUILD_ROOT
		
%post
%{update_menus}
if which update-mime-database >/dev/null 2>&1; update-mime-database "%{_datadir}/mime" ; fi

%postun
%{clean_menus}
if which update-mime-database >/dev/null 2>&1; update-mime-database "%{_datadir}/mime" ; fi

%files
%defattr(-, root, root)

%doc AUTHORS COPYING ChangeLog NEWS README TODO
%doc examples/ 
%{prefix}/bin/mergeant
%{prefix}/share/pixmaps/mergeant/*
%{prefix}/share/pixmaps/*.png
%{prefix}/share/locale/*
%{prefix}/share/applications/mergeant.desktop
%{prefix}/share/gnome/help/mergeant/C/*
%{prefix}/share/gnome/help/mergeant/fr/*
%{prefix}/share/icons/hicolor/48x48/mimetypes/*
%{prefix}/share/mergeant/plugins/*
%{prefix}/share/mergeant/dtd/*
%{prefix}/share/mime/packages/*

%{_menudir}/*
%{_iconsdir}/*.xpm
%{_liconsdir}/*.xpm
%{_miconsdir}/*.xpm