perfsonar-dev - creation of rpms
Subject: perfsonar development work
List archive
- From: Stijn Melis <>
- To: "" <>
- Subject: creation of rpms
- Date: Wed, 17 Sep 2008 12:17:43 +0200
Hi all,
I am trying to create an rpm for the sshtelnet mp. I followed the instructions in the build guide, but when I try to create a package on the mdm-4.par.fr.geant2.net machine, it states the following:
[root@virt-rhel5 stijn]# rpmbuild -bb ~/stijn/rpmbuild/SPECS/ps-mdm-sshtelnet-mp.specs
error: Failed build dependencies:
maven2 is needed by ps-mdm-sshtelnet-mp-1.3.4RC1-1.noarch
Yet I noticed that Roman did manage to create an rpm there and when I try to install maven2 with yum, it states that nothing needs to be done. I attached my specs file, which is largely copied from Roman's. Am I forgetting something?
I'll try building a deb file on mdm-3.par.fr.geant2.net instead.
Thanks in advance,
Stijn
# This is where all tomcat stuff will be installed
%define prefix /var/lib/tomcat5/webapps/%{name}
# The full name of your package.
Name: ps-mdm-sshtelnet-mp
# Version of the microrelease
Version: 1.3.4RC1
License: GPL
# Package version. Increment if you create a new package of same microrelease
Release: 1
# short description of the package
Summary: perfSONAR SSH/Telnet Measurement Point
# The name of the source tarbal
Source0: %{name}-%{version}.tar.gz
# what should be used for buildpath, you don't need to change this
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
# in what RPM group will the RPM be installed, don't need to change
Group: Network/Web service
# YOU
packager: Stijn Melis
<>
# What is the location of the source package
URL: http://www.perfsonar.org
# on what packages should the resulting package depend
Requires: tomcat5
Requires: tomcat5-exist
# For what architecture is this package ment
BuildArch: noarch
# What RPM packages are needed during build
BuildRequires: maven2
#describe your package here
%description
The purpose of and the desired functionality expected from the perfSONAR
SSH/Telnet MP is that it should be able to contact underlying hardware
devices, and execute show-like commands on. It should primarily serve NOC's,
whom would be able to use a Looking Glass-style client to request real-time
configuration information about those devices.
%prep
%{__rm} -rf ${RPM_BUILD_DIR}/%{name}-%{version}
%setup -q
%build
pushd ${RPM_BUILD_DIR}/%{name}-%{version}
mvn package
popd
%install
# make the directory
rm -rf $RPM_BUILD_ROOT
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}
%{__install} -d -m 755 ${RPM_BUILD_ROOT}/usr/share/doc/%{name}
%{__install} -d -m 755 ${RPM_BUILD_ROOT}/usr/share/doc/%{name}/schema
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}/WEB-INF
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/requests
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/responses
# copy the service content to the tomcat webapps directory
pushd ${RPM_BUILD_DIR}/%{name}-%{version}/build
%{__cp} -a %{name}/* ${RPM_BUILD_ROOT}%{prefix}
popd
pushd ${RPM_BUILD_DIR}/%{name}-%{version}/doc
%{__cp} -a * ${RPM_BUILD_ROOT}/usr/share/doc/%{name}
popd
pushd ${RPM_BUILD_DIR}/%{name}-%{version}
%{__cp} -a samples/requests/*
${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/requests
%{__cp} -a samples/responses/*
${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/responses
popd
%post
## make symlink for easy access to conf
%{__ln_s} %{prefix}/WEB-INF/classes/perfsonar/conf/*.properties
%{_sysconfdir}/%{name}
%{__ln_s} %{prefix}/WEB-INF/classes/perfsonar/conf/objects.config
%{_sysconfdir}/%{name}
%{__ln_s} %{prefix}/WEB-INF/classes/perfsonar/conf/*.xml
%{_sysconfdir}/%{name}
%{__ln_s} %{prefix}/WEB-INF/classes/perfsonar/conf/*.rng
%{_sysconfdir}/%{name}
%{__ln_s} %{_var}/log/tomcat5 %{_var}/log/%{name}
%{__ln_s} %{prefix} %{_var}/lib/tomcat5/webapps/%{name}
## restart tomcat
/sbin/service tomcat5 restart
%preun
## remove symlink
%{__rm} -rf %{_sysconfdir}/%{name}/*.properties
%{__rm} -rf %{_sysconfdir}/%{name}/objects.config
%{__rm} -rf %{_sysconfdir}/%{name}/*.xml
%{__rm} -rf %{_sysconfdir}/%{name}/*.rng
%{__rm} -rf %{_var}/log/%{name}
%{__rm} -rf %{_var}/lib/tomcat5/webapps/%{name}
%postun
## restart tomcat
/sbin/service tomcat5 restart
%clean
# clean up the durt
rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Sep 17 2008 Stijn Melis
<>
1.3.4RC1
- ps-base version: 1.0.20080902
- web-admin version: 0.9.3b
- added selftest and syslogging
- updated webadmin
* Wed Jun 18 2008 Stijn Melis
<>
1.3.3
- ps-base version: 1.0.20080310
- web-admin version: 0.8.3b
- fixed the design flaw which was related to the command parameters (had to
update the list of commands for this)
- added a parameter to the service.properties file, which defines a directory
to put the temporary token files
* Fri Jun 06 2008 Stijn Melis
<>
1.3.2
- ps-base version: 1.0.20080310
- web-admin version: 0.8.3b
- fixed the bug which prevented the SSHTELNET MP from registering to the LS
* Wed May 28 2008 Stijn Melis
<>
1.3.1
- ps-base version: 1.0.20080310
- web-admin version: 0.8.3b
- fixed the bug in the service.properties and wizard.properties files which
prevented the Authentication to work properly
- removed some unnecessary logging entries in some classes (too much printlns
which don't really add anything useful)
* Mon May 05 2008 Stijn Melis
<>
1.3
- ps-base version: 1.0.20080310
- web-admin version: 0.8.3b
- fixed the bug which prevented the MP from connecting to the eXist database
- fixed the bug which removed the groups in the webadmin once it was used
once
* Thu Mar 27 2008 Stijn Melis
<>
1.3RC4
- ps-base version: 1.0.20080310
- web-admin version: 0.8b
- no further fixes
* Thu Mar 06 2008 Stijn Melis
<>
1.3RC3
- fixed timeout bug in the telnet side of the SSHTELNET MP
* Mon Mar 03 2008 Stijn Melis
<>
1.3RC2
- fixed bug in the service.properties file
* Wed Feb 06 2008 Stijn Melis
<>
1.3RC1
- added Authentication
- changed eventTypes to be URL based
- changed metadata configuration to XML (now uses eXist database)
- added timeout parameter
- added maximum number of users parameter
- added web admin interface
- installation is now rpm based
- updated command list
%define prefix /opt/perfsonar/services/%{name}
Name: geant2-java-rrd-ma
Version: 3.1rc4
License: Modified BSD
Release: 1
Summary: perfSONAR Round Robin Database
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
Group: Network/Web service
packager: Roman Lapacz
<>
URL: http://www.perfsonar.org
Requires: tomcat5
Requires: tomcat5-exist
Requires: rrdjtool
BuildArch: noarch
#BuildRequires: maven2
%description
perfSONAR Round Robin Database
%prep
%{__rm} -rf ${RPM_BUILD_DIR}/%{name}-%{version}
%setup -q
%build
pushd ${RPM_BUILD_DIR}/%{name}-%{version}
mvn package
popd
%install
# make the directory
rm -rf $RPM_BUILD_ROOT
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}
%{__install} -d -m 755 ${RPM_BUILD_ROOT}/usr/share/doc/%{name}
%{__install} -d -m 755 ${RPM_BUILD_ROOT}/usr/share/doc/%{name}/schema
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}/WEB-INF
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/requests
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/responses
%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/rrd
%{__install} -d -m 755
${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/metadata_conf
# copy the service content to the tomcat webapps directory
pushd ${RPM_BUILD_DIR}/%{name}-%{version}/build
%{__cp} -a %{name}/* ${RPM_BUILD_ROOT}%{prefix}
popd
pushd ${RPM_BUILD_DIR}/%{name}-%{version}/doc
%{__cp} -a * ${RPM_BUILD_ROOT}/usr/share/doc/%{name}
popd
pushd ${RPM_BUILD_DIR}/%{name}-%{version}
%{__cp} -a samples/requests/*
${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/requests
%{__cp} -a samples/responses/*
${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/responses
%{__cp} -a samples/rrd/* ${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/rrd
%{__cp} -a samples/metadata_conf/*
${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/metadata_conf
popd
rrdtool restore ${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/rrd/test.xml
${RPM_BUILD_ROOT}%{prefix}/WEB-INF/samples/rrd/test.rrd -f || true
%post
## make symlink for easy access to conf
%{__ln_s} %{prefix}/WEB-INF/classes/perfsonar/conf/*.properties
%{_sysconfdir}/%{name}
%{__ln_s} %{prefix}/WEB-INF/classes/perfsonar/conf/objects.config
%{_sysconfdir}/%{name}
%{__ln_s} %{prefix}/WEB-INF/classes/perfsonar/conf/*.xml
%{_sysconfdir}/%{name}
%{__ln_s} %{prefix}/WEB-INF/classes/perfsonar/conf/*.rng
%{_sysconfdir}/%{name}
%{__ln_s} %{_var}/log/tomcat5 %{_var}/log/%{name}
%{__ln_s} %{prefix} %{_var}/lib/tomcat5/webapps/%{name}
## restart tomcat
/sbin/service tomcat5 restart
%preun
## remove symlink
%{__rm} -rf %{_sysconfdir}/%{name}/*.properties
%{__rm} -rf %{_sysconfdir}/%{name}/objects.config
%{__rm} -rf %{_sysconfdir}/%{name}/*.xml
%{__rm} -rf %{_sysconfdir}/%{name}/*.rng
%{__rm} -rf %{_var}/log/%{name}
%{__rm} -rf %{_var}/lib/tomcat5/webapps/%{name}
%postun
## restart tomcat
/sbin/service tomcat5 restart
%clean
# clean up the durt
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644,root,tomcat,0755)
%attr(640,tomcat,tomcat) %config(noreplace)
%{prefix}/WEB-INF/classes/perfsonar/conf/*.properties
%attr(640,tomcat,tomcat) %config(noreplace)
%{prefix}/WEB-INF/classes/perfsonar/conf/objects.config
%attr(640,tomcat,tomcat) %config(noreplace)
%{prefix}/WEB-INF/classes/perfsonar/conf/*.xml
%{prefix}
%{_sysconfdir}/%{name}
/usr/share/doc/%{name}
/usr/share/doc/%{name}/schema
%changelog
* Wed Sep 03 2008 Roman Lapacz
<>
3.1-1
- New: EchoRequest message allows now checking: if eXist database is running
and the count the content of metadata configuration file; access data from
random RRD file. It is also possible to request a self-test including all
above.
- New: parameter keyword introduced in metadata block to indicate
project/organisation name
- New: new request MeasurementArchiveStoreRequest switched off by default
- New: performance improvements for MetadataKeyRequest message which fetches
all metadata elements
- Change: format of log messages changed
- Change: use of pSbase v1.0.20080902
- Change: use of web admin library v0.9.1b
- Change: obsolete authRealm removed from metadata configuration file
* Mon Mar 10 2008 Roman Lapacz
<>
3.0-1
- New: support of ErrorResponse message type (use of perfsonar-base library
version 1.0.20080310)
- New: netutil namespace of datum element in the response containing
utilization value is used.
- New: WebAdmin administration (set of servlets) added
- New: RPM is used as the installation package
- New: support of AuthN functionality
- Change: supportedEventTypes parameter in metadata element (in metadata
cofiguration file) replaced with eventType element (the parameter is still
supported)
- Change: LS register component can now take metadata elements from xml
database directly (not only from XML metadata config file)
- Change: LS register interval time updated (now it's 12 hours)
- Change: service name has changed (now it is geant2-java-rrd-ma)
* Fri Nov 23 2007 Roman Lapacz
<>
2.3.2-1
- New: the dump of rrd test file added
- Fixed Bug #264: bulding the rrdjtool library for 64 bit arch fixed
* Fri Oct 26 2007 Roman Lapacz
<>
2.3.1-1
- Fixed Bug #243: problem with static default context name of eXist in URL
address fixed
* Wed Oct 24 2007 Roman Lapacz
<>
2.3-1
- New: support for two additional characteristics: ifErrors and ifDiscards
- New: new RRD test file to reflect new characteristics
- New: eventType paremeter added to the key
- Change: nmwg namespace for utilization datum element
- Change: defaultly all log messages are collected in one log file
- Change: defaultly debug log level is switched off
- Change: base chanining switched on, propert in service.properties exist to
switch it off
- Change: eventType URL-based only
- Change: service moved to new SVN structure
- Change: ant scripts improved
- Change: namespace of datum elements in SetupDataResponse message tied to
eventType value
- Change: supportedEventType parameter replaced by eventType element in
metadata config file (excluding utilization). But service supports both
- Change: use of new versions of base and NMWG libraries
- Change: if 'jar' target is called and const.properties file does not exist
then const.properties.template is renamed into const.properties before
compilation
- Change: new parameters set in data element in SetupDataResponse message
containing general parameters used to create rrd file
- Change: updated support for LookupInfoRequest to include all service
properties
- Change: service can generate keys with parameters elements of different
namespaces
- Fixed Bug #102: missing data in response
- Fixed Bug #103: missing data in response
- Fixed Bug #150: time interval shifted
- Fixed Bug #157: namespace declaration
- Fixed Bug #195: directories structure
- Fixed Bug #198: exist database installation and initialisation limitations
- Fixed Bug #221: supportedEventType vs eventType compatibility issue
* Tue May 22 2007 Roman Lapacz
<>
2.2-1
- Change: default log4j parameters updated; can generate 11 archive log files
for each log level (500KB each)
- Change: bug of wrong Context of exist war file fixed
- Change: bug of wrong data source name when writing data into new RRD file
fixed. Using new eventType was causing a problem while storing new data in
RRD MA
* Tue May 15 2007 Roman Lapacz
<>
2.1-1
- New: Support for LookupInfoRequest for getting general information about
the service
- New: Key contains optional parameters describing RRD file: step, data type,
heartbeat, min and max value
- New: Configure script asks for service description, contact email and
organization name
- New: Iso time type support
- Change: using only one exception class
* Wed Mar 21 2007 Roman Lapacz
<>
2.0-1
- New: Lookup Service registration
- New: pre-install, configure, deploy, test steps in installation process
- New: echoRequest functionality
- New: 64-bit Linux support for building the rrdjtool library
- New: result codes
- New: support for mulitple service in one Tomcat instance
- New: removing whitespaces such as newline, tabs, etc that are present in
the request messages
- Change: support for new utilization evenType value naming scheme
- Change: log4J configuration in log4j.properties
- Fixed Bug #108: installation process
- Fixed Bug #109: installation process
- creation of rpms, Stijn Melis, 09/17/2008
Archive powered by MHonArc 2.6.16.