File webpasswordsafe.spec of Package webpasswordsafe
#
#
%define webapps /srv/tomcat/webapps
%define nsusr tomcat
%define nsgrp tomcat
#
Summary: Web-based, multi-user, secure password safe/manager
Name: webpasswordsafe
Version: 1.4+git1447427589.d133399
Release: 0
Source: webpasswordsafe-master.tar.gz
Source2: webpasswordsafe-dependencies-bin-1.2.zip
Source3: webpasswordsafe-offline-deps.tar.bz2
Source4: webpasswordsafe-1.4.war
Source5: README.SUSE
Source6: log4j.xml
License: GPL-2.0
Group: Development/Tools/Other
URL: https://github.com/joshdrummond/webpasswordsafe
Requires: java-sdk-openjdk >= 1.6.0
Requires: tomcat
BuildRequires: unzip
BuildRequires: tomcat
BuildRequires: fdupes
#BuildRequires: maven
BuildRequires: java-sdk-openjdk >= 1.6.0
BuildArch: noarch
%description
Open-source, web-based secure password safe for the enterprise that supports
multiple users with delegated access controls. Simple to use, manage passwords
and other sensitive secrets centrally in a secure database with industry standard
pluggable strong encryption. Multiple users and groups can be added using
pluggable authentication/authorization and role-based access controls. Fine-grained
access controls can be defined on passwords to share with other authorized users
in view only, view and update, or delegated granting modes. Reusable permission
templates can be defined. Ability to organize passwords using friendly tags.
Configurable strong password generation tool. Full audit trail of all password
access events, many useful and configurable reports, as well as pluggable modules
for external logging all audit events. History of old passwords can be kept.
Exports can be done for disaster recovery purposes. Password retrieval also
exposed via Web Services for automated processes.
%package jdbc-mysql
Summary: MySQL support for %{name}
Requires: mysql-connector-java
%description jdbc-mysql
This package provides the JDBC driver for MySQL.
%package jdbc-postgresql
Summary: PostgreSQL support for %{name}
Requires: postgresql-jdbc
%description jdbc-postgresql
This package provides the JDBC driver for PostgreSQL`
%prep
install -m 0644 %{S:5} README.SUSE
%build
# mvn install:install-file -DgroupId=com.extjs -DartifactId=gxt -Dversion=2.2.5 -Dpackaging=jar -Dfile=gxt-2.2.5-gwt22.jar
# mvn install:install-file -DgroupId=net.sf.gwt-widget -DartifactId=gwt-sl -Dversion=1.1 -Dpackaging=jar -Dfile=gwt-sl-1.1.jar
# mvn install:install-file -DgroupId=trove -DartifactId=trove -Dversion=2.0.4 -Dpackaging=jar -Dfile=trove-2.0.4.jar
# mvn clean package
%install
mkdir -p %{buildroot}/%{webapps}/%{name}
pushd %{buildroot}/%{webapps}/%{name}
unzip %{S:4}
install -m 0644 %{S:6} WEB-INF/classes
find %{buildroot}/%{webapps}/%{name} -type d -exec chmod 755 {} +
popd
#
%fdupes %{buildroot}/%{webapps}/%{name}
#%post
#chown -R %{nsusr}:%{nsgrp} %{buildroot}/%{webapps}/%{name}
%files
%defattr(-,%{nsusr},%{nsgrp})
%doc README.SUSE
%{webapps}/%{name}
%config(noreplace) %{webapps}/%{name}/WEB-INF/encryption.properties
%config(noreplace) %{webapps}/%{name}/WEB-INF/jdbc.properties
%config(noreplace) %{webapps}/%{name}/WEB-INF/rpc-servlet.xml
%config(noreplace) %{webapps}/%{name}/WEB-INF/webpasswordsafe-data.xml
%config(noreplace) %{webapps}/%{name}/WEB-INF/webpasswordsafe-service.xml
%config(noreplace) %{webapps}/%{name}/WEB-INF/web.xml
%config(noreplace) %{webapps}/%{name}/WEB-INF/classes/log4j.xml
%files jdbc-mysql
%defattr(-,root,root)
%files jdbc-postgresql
%defattr(-,root,root)
%changelog