File: srcpd.spec

package info (click to toggle)
srcpd 2.1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,900 kB
  • sloc: ansic: 18,080; sh: 4,579; makefile: 95
file content (116 lines) | stat: -rw-r--r-- 3,407 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
104
105
106
107
108
109
110
111
112
113
114
115
116
Summary: SRCP server daemon to control digital model railroads
Summary(de): SRCP-Server zur Steuerung von digitalen Modelleisenbahnen
Name: srcpd
Version: 2.1.2
Release: 1%{?dist}
Source0: %{name}-%{version}.tar.bz2
License: GPL-2
Group: Games/Daemon
Vendor: the srcpd team
URL: http://srcpd.sourceforge.net/
Prefix: /usr
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
# if you use the LSB compliant init.d script, add "insserv" here:
Requires: libxml2
BuildRequires: libxml2-devel
%if 0%{?suse_version}
%if %suse_version >= 1100
BuildRequires: i2c-tools
%endif
%endif

%description
The srcpd is a server daemon that enables you to control and play with 
a digital model railroad using any SRCP client. Currently it supports many
interface (both self made and commercally) and direct signal generation.

More information about SRCP and links to many really cool clients (and 
other servers for different hardware) can be found at 
http://srcpd.sourceforge.net/ and http://www.der-moba.de/

%prep
%setup -q

%build
CFLAGS=$RPM_OPT_FLAGS \
./configure --prefix=%{_prefix} \
            --mandir=%{_mandir} \
	    --sysconfdir=%{_sysconfdir}
make

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}/init.d
make DESTDIR=$RPM_BUILD_ROOT install

# to use the LSB compliant init.d script change "init.d.suse" to
# "init.d.lsb":
install -m 744 init.d.suse $RPM_BUILD_ROOT%{_sysconfdir}/init.d/%{name}
ln -s %{_sysconfdir}/init.d/%{name} $RPM_BUILD_ROOT%{_sbindir}/rcsrcpd

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%post
# Initialize runlevel links
if [ -x /usr/lib/lsb/install_initd ] ; then
    /usr/lib/lsb/install_initd %{_sysconfdir}/init.d/%{name}
fi

%preun
# stop running server daemon and remove runlevel links
%{_sysconfdir}/init.d/%{name} stop
if [ -x /usr/lib/lsb/install_initd ] ; then
    /usr/lib/lsb/remove_initd %{_sysconfdir}/init.d/%{name}
fi

%files
%defattr(-,root,root)
%{_sbindir}/%{name}
%{_sbindir}/rcsrcpd
%{_sysconfdir}/init.d/%{name}
%{_sysconfdir}/udev/rules.d/*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%docdir %{_mandir}/*
%{_mandir}/man8/*
%{_mandir}/de/man8/*
%{_mandir}/man5/*
%{_mandir}/de/man5/*
%doc COPYING AUTHORS README NEWS DESIGN PROGRAMMING-HOWTO
%doc README.freebsd README.selectrix README.loconet TODO

%changelog
* Wed Mar 03 2010 Guido Scholz <guido.scholz@bayernline.de> 2.1.1-1
- Update to version 2.1.1

* Sat Dec 19 2009 Guido Scholz <guido.scholz@bayernline.de> 2.1.0-1
- Update to version 2.1.0

* Wed Jan 21 2009 Guido Scholz <guido.scholz@bayernline.de> 2.0.13-1
- Update to version 2.0.13

* Sat Dec 29 2007 Guido Scholz <guido.scholz@bayernline.de>
- update to version 2.0.11
- man page (man5) added
- translated man pages added
- udev rules file added

* Sat Dec 09 2006 Guido Scholz <guido.scholz@bayernline.de>
- update to version 2.0.10

* Sun Dec 11 2005 Guido Scholz <guido.scholz@bayernline.de>
- dist tag added, hard coded packager removed

* Mon Jul 11 2005 Guido Scholz <guido.scholz@bayernline.de>
- More documentation files added

* Mon Nov 01 2004 Guido Scholz <guido.scholz@bayernline.de>
- Changed sysconfdir patch

* Mon Oct 18 2004 Guido Scholz <guido.scholz@bayernline.de>
- Update to srcpd-2.0-6

* Thu Jan 08 2004 Guido Scholz <guido.scholz@bayernline.de>
- adaptation to SuSE 9.0