summaryrefslogtreecommitdiffstats
path: root/kmag/kmag.mdk.spec
blob: 4c61553783a56833dfe6fcdd73eb721de7e9faf5 (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
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
104
105
106
107
108
%define name kmag
%define version 0.8
%define release 1

Name: 		%{name}
Version: 	%{version}
Release: 	%{release}
Summary:  	KDE Screen Magnifier
Group: 		Graphical desktop/KDE
License: 	GPL
Source: 	%{name}-%{version}.tar.gz
URL:		http://kmag.sourceforge.net
Packager:	Sarang Lakare <[email protected]>
Buildroot: 	%_tmppath/%{name}-%{version}-buildroot
BuildRequires:  gcc-cpp db3 readline pam popt libtermcap2 zlib1 XFree86-devel XFree86-libs Mesa-common
BuildRequires:  automake arts autoconf diffutils tdelibs file 
BuildRequires:  m4 texinfo gettext libjpeg62-devel tdelibs-devel gcc-c++ libbinutils2 libbzip2_1
BuildRequires:  db1 freetype2 libjpeg62 libmng1 libpng libqt2 libqt2-devel rpm-build


%description
KMagnifier is a screen magnifier for KDE. It is useful for
people with bad sight or others needing to magnify a part of the screen.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -n %{name}-%{version}

%build
CFLAGS="%optflags" CXXFLAGS="%optflags" \
           ./configure --prefix=%_prefix \
	               --disable-rpath \
		       --disable-debug

%make

%install
make DESTDIR=%buildroot install

install -d $RPM_BUILD_ROOT%_menudir

kdedesktop2mdkmenu.pl kmag "Applications/Accessibility" %buildroot/%_datadir/applnk/Applications/Accessibility/kmag.desktop %buildroot/%_menudir/kmag


%clean
rm -rf $RPM_BUILD_ROOT

%post 
%update_menus

%postun 
%clean_menus

%files 
%defattr(-,root,root)
%_bindir/*
%_menudir/*
#
%_datadir/icons/locolor/16x16/apps/*.png
%_datadir/icons/locolor/32x32/apps/*.png 
%_datadir/icons/hicolor/16x16/apps/*.png
#
%_datadir/applnk/Applications/Accessibility/*.desktop 
#
%dir %_datadir/apps/kmag/
%_datadir/apps/kmag/*.rc
#
#%doc README COPYING AUTHORS
#%doc %_docdir/HTML/en/*.docbook
%doc %_docdir/HTML/en/kmag/*.docbook
%doc %_docdir/HTML/en/kmag/images/*.png
#%doc %_docdir/HTML/en/kmag/common

%changelog
* Sun Apr 21 2002 Sarang Lakare <[email protected]> 0.8-1mdk
- Rebuilding ver 0.8 for LM8.2/LM8.1
- Added KDE documentation and removed GNU documentation

* Tue Nov 20 2001 Sarang Lakare <[email protected]> 0.6-1mdk
- Rebuilding ver 0.6 for LM8.0

* Sat Oct 20 2001 Laurent MONTEL <[email protected]> 0.5-2mdk
- Rebuild against libpng3

* Wed Sep 19 2001 Laurent MONTEL <[email protected]> 0.5-1mdk
- update code (0.5)

* Wed Aug 08 2001 Lenny Cartier <[email protected]> 0.3-6mdk
- rebuild

* Tue Apr 10 2001 David BAUDENS <[email protected]> 0.3-5mdk
- Move KDE menu entriy in %%_datadir/applnk
- Fix and use optimizations
- Fix BuildRequires for non %%ix86 architectures
- Rebuild against latest GCC

* Fri Mar 30 2001 Laurent MONTEL <[email protected]> 0.3-4mdk
- Fix typo in menu entry

* Wed Mar 28 2001 Laurent MONTEL <[email protected]> 0.3-3mdk
- Add build requires

* Tue Mar 13 2001 Laurent MONTEL <[email protected]> 0.3-2mdk
- REbuild with qt-2.3

* Sat Feb 24 2001 Daouda Lo <[email protected]> 0.3-1mdk
- first mdk package