Moving micasa 1.5 trunk to Novell forge.
This commit is contained in:
65
ClientPasswordManager/package/linux/Makefile.am
Normal file
65
ClientPasswordManager/package/linux/Makefile.am
Normal file
@@ -0,0 +1,65 @@
|
||||
#######################################################################
|
||||
#
|
||||
# Copyright (C) 2004 Novell, Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
#
|
||||
# Author: Juan Carlos Luciani <jluciani@novell.com>
|
||||
#
|
||||
#######################################################################
|
||||
|
||||
RPM_FILE = $(PACKAGE)-$(VERSION)-$(RELEASE).$(target_cpu).rpm
|
||||
SRPM_FILE = $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
|
||||
|
||||
.PHONY: package package-clean package-install package-uninstall
|
||||
|
||||
#all: $(RPM_FILE)
|
||||
|
||||
package: $(RPM_FILE)
|
||||
|
||||
all clean:
|
||||
|
||||
$(RPM_FILE):
|
||||
cd $(top_srcdir); make dist
|
||||
rm -rf RPM
|
||||
mkdir RPM
|
||||
echo %_topdir `pwd`/RPM > $(HOME)/.rpmmacros
|
||||
mkdir -p RPM/BUILD
|
||||
mkdir -p RPM/RPMS
|
||||
mkdir -p RPM/SOURCES
|
||||
mkdir -p RPM/SPECS
|
||||
mkdir -p RPM/SRPMS
|
||||
cp clientpasswordmanager.spec RPM/SPECS
|
||||
cp $(top_srcdir)/$(PACKAGE)-$(VERSION).tar.gz RPM/SOURCES
|
||||
mv $(top_srcdir)/$(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)-$(RELEASE).tar.gz
|
||||
rpmbuild -ba -v -vv --target=$(target_triplet) RPM/SPECS/clientpasswordmanager.spec
|
||||
cp RPM/RPMS/*/$(RPM_FILE) .
|
||||
cp RPM/SRPMS/$(SRPM_FILE) .
|
||||
|
||||
package-install: package
|
||||
su -c "rpm -Uvh $(RPM_FILE)"
|
||||
|
||||
package-uninstall:
|
||||
su -c "rpm -e $(PACKAGE)"
|
||||
|
||||
package-clean clean-local:
|
||||
rm -rf *.rpm RPM *.gz
|
||||
|
||||
distclean-local: package-clean
|
||||
rm -f Makefile clientpasswordmanager.spec
|
||||
|
||||
maintainer-clean-local:
|
||||
rm -f Makefile.in
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
#######################################################################
|
||||
#
|
||||
# Copyright (C) 2004 Novell, Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
#
|
||||
# Author: Juan Carlos Luciani <jluciani@novell.com>
|
||||
#
|
||||
#######################################################################
|
||||
|
||||
# SuSE Specific autobuild tags
|
||||
# neededforbuild mono mono-devel pkgconfig glib2 glib2-devel libicu26
|
||||
|
||||
%define prefix /opt/novell/clientpasswordmanager
|
||||
|
||||
Summary: ClientPasswordManager
|
||||
Name: @PACKAGE@
|
||||
Version: @VERSION@
|
||||
Release: @RELEASE@
|
||||
Copyright: GPL
|
||||
Group: Applications/Productivity
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
URL: http://forge.novell.com/modules/xfmod/project/?isecure
|
||||
#Distribution :
|
||||
Vendor: <unknown>
|
||||
Packager: <unknown>
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}
|
||||
|
||||
Requires: mono >= 0.31
|
||||
Obsoletes: %{name} <= %{version}
|
||||
#=============================================================================
|
||||
%Description
|
||||
ClientPasswordManager provides an infrastructure that allows trusted
|
||||
applications to share passwords to help provide a Single Sign-On experience
|
||||
to the user.
|
||||
|
||||
#=============================================================================
|
||||
%ChangeLog
|
||||
|
||||
|
||||
#=============================================================================
|
||||
%Prep
|
||||
%setup -n %{name}-%{version}
|
||||
|
||||
|
||||
#=============================================================================
|
||||
%Build
|
||||
./configure --prefix=%{prefix}
|
||||
make
|
||||
|
||||
#=============================================================================
|
||||
%Install
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
#=============================================================================
|
||||
%Clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
#=============================================================================
|
||||
%Post
|
||||
cd /opt/novell/clientpasswordmanager/lib
|
||||
gacutil -i Novell.Security.ClientPasswordManager.NetCredential.dll
|
||||
gacutil -i Novell.Security.ClientPasswordManager.UsernameDialog.dll
|
||||
gacutil -i Novell.Security.ClientPasswordManager.PasswordDialog.dll
|
||||
gacutil -i Novell.Security.Utilities.dll
|
||||
exit 0
|
||||
|
||||
#=============================================================================
|
||||
%Preun
|
||||
gacutil -u Novell.Security.ClientPasswordManager.NetCredential
|
||||
gacutil -u Novell.Security.ClientPasswordManager.UsernameDialog
|
||||
gacutil -u Novell.Security.ClientPasswordManager.PasswordDialog
|
||||
gacutil -u Novell.Security.Utilities
|
||||
exit 0
|
||||
|
||||
#=============================================================================
|
||||
%Files
|
||||
%defattr(-,root,root)
|
||||
%{prefix}/*
|
||||
#%{prefix}/lib/*
|
||||
#%{prefix}/share/*
|
||||
|
||||
Reference in New Issue
Block a user